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()
|
public void OnPlayButtonClicked()
|
||||||
{
|
{
|
||||||
HasStarted = true;
|
HasStarted = true;
|
||||||
time = waveQueue.Peek().spawnTime;
|
|
||||||
PopWave();
|
PopWave();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,6 +62,8 @@ public class EnemySpawnManager : MonoBehaviour
|
||||||
|
|
||||||
void PopWave()
|
void PopWave()
|
||||||
{
|
{
|
||||||
|
time = 0;
|
||||||
|
|
||||||
Wave spawnWave = waveQueue.Dequeue();
|
Wave spawnWave = waveQueue.Dequeue();
|
||||||
for (int i = 0; i < spawnWave.groups.Length; i++)
|
for (int i = 0; i < spawnWave.groups.Length; i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue