ta dando erro aqui, no console. Assets\GeradorZumbi.cs(24,17): error CS0103: The name 'Instatiate' does not exist in the current context
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GeradorZumbi : MonoBehaviour
{
public GameObject Zumbi;
float contadorTempo = 0;
public float TempoGerarZumbi = 1;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
contadorTempo += Time.deltaTime;
if(contadorTempo >= TempoGerarZumbi)
{
Instatiate(Zumbi, transform.position, transform.rotation);
contadorTempo = 0;
}
}
}