public void LoadNextWave(StageWave completedStage) { beginNextWave = true; currentWaveIndex++; if (currentWaveIndex >= numOfWaves) return; StartCoroutine(childWaves[currentWaveIndex].BeginCurrWave()); }
// 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; } }