diff --git a/Assets/Scripts/Manager/EnemySpawnManager.cs b/Assets/Scripts/Manager/EnemySpawnManager.cs index 9354542..6bc0366 100644 --- a/Assets/Scripts/Manager/EnemySpawnManager.cs +++ b/Assets/Scripts/Manager/EnemySpawnManager.cs @@ -36,7 +36,6 @@ public class EnemySpawnManager : MonoBehaviour public void OnPlayButtonClicked() { HasStarted = true; - time = waveQueue.Peek().spawnTime; PopWave(); } @@ -63,6 +62,8 @@ public class EnemySpawnManager : MonoBehaviour void PopWave() { + time = 0; + Wave spawnWave = waveQueue.Dequeue(); for (int i = 0; i < spawnWave.groups.Length; i++) {