コード例 #1
0
 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;
 }
コード例 #3
0
 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;
     }
 }