public void LoadNextWave(StageWave completedStage)
 {
     beginNextWave = true;
     currentWaveIndex++;
     if (currentWaveIndex >= numOfWaves)
         return;
     StartCoroutine(childWaves[currentWaveIndex].BeginCurrWave());
 }
Пример #2
0
 // Notify the parent wave when this spaceship dies
 public void SetOnDeathNotify(StageWave parent)
 {
     parentWave = parent;
 }
 public void NotifyWaveCompleted(StageWave completedStage)
 {
     numOfWavesCompleted++;
     Debug.Log("PLAYER BEAT WAVE: " + completedStage.name + " numOfWavesCompleted: " + numOfWavesCompleted + "/" + numOfWaves);
     if (numOfWavesCompleted >= numOfWaves)
     {
         parentGroup.NotifyStageCompleted(this);
         Debug.Log("PLAYER BEAT STAGE " + name);
         return;
     }
 }