Working on Fyrd Archers
This commit is contained in:
@@ -17,7 +17,7 @@ public class SimpleEnemySpawner : MonoBehaviour
|
||||
void Update()
|
||||
{
|
||||
spawnCounter -= Time.deltaTime;
|
||||
if(spawnCounter <= 0f)
|
||||
if(spawnCounter <= 0f && amountToSpawn > 0)
|
||||
{
|
||||
spawnCounter = timeBetweenSpawns;
|
||||
Instantiate(enemyToSpawn, spawnPoint.position, spawnPoint.rotation);
|
||||
|
||||
Reference in New Issue
Block a user