예제 #1
0
 void StartNextWave()
 {
     if (waves.Count == 0)
     {
         waveCounter.text = "stage complete";
         return;
     }
     enemyHandler.StartWave(waves[0]);
     waves.RemoveAt(0);
     waveCount = waves.Count;
     if (waveCount > 1)
     {
         waveCounter.text = waveCount + " waves left";
     }
     else if (waveCount == 1)
     {
         waveCounter.text = "next wave is boss";
     }
 }