Spawn time is now spawn interval
This commit is contained in:
parent
d7d4e0f02c
commit
dc1dfeee67
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue