Spawn time is now spawn interval

This commit is contained in:
BOT Alex 2024-04-21 06:45:20 +02:00
parent d7d4e0f02c
commit dc1dfeee67
1 changed files with 2 additions and 1 deletions

View File

@ -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++)
{