Hi
On my code i instantiate 10 enemies
But all at same time
And i need instantiate one each half second
Please
How can i do with a counter
Or a better way please
I will apresiate so mucho any help
Thankes
Hi
On my code i instantiate 10 enemies
But all at same time
And i need instantiate one each half second
Please
How can i do with a counter
Or a better way please
I will apresiate so mucho any help
Thankes
This… is one way?
private int _enemiesSpawned;
private void Start()
{
_enemiesSpawned = 0;
InvokeRepeating("PerformSpawn", 0.5f, 0.5f)
}
private void PerformSpawn()
{
// DO SPAWN STUFF
_enemiesSpawned++;
if (_enemiesSpawned == 10)
CancelInvoke("PerformSpawn");
}
thanks so much … !!! really thanks !!!
just changes some small things but works 400%
thanks again
here is the reference if some one else need it .