Working on Fyrd Archers

This commit is contained in:
2026-04-16 16:43:34 +01:00
parent 76dc783914
commit 8bfe3e396e
17 changed files with 939 additions and 128 deletions

View File

@@ -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);