public class TankSpawner : MonoBehaviour {
int counter = 0;
public GameObject tankPrefab;
void update () {
counter+=1;
if (counter == 100) {
Instantiate(tankPrefab, new Vector3(Random.Range(-5,5), Random.Range(-5, 5), Random.Range(-5, 5)), Quaternion.identity);
counter = 0;
}
}
}
And yet nothing happens(and yes I have set the GameObject to be the Tank)