/// <summary> /// Implements <see cref="CgfGames.IGameCtrl.SaucerDestroyed"/>. /// </summary> public void SaucerDestroyed(ISaucerCtrl saucer) { // Update score this.GameState.Score += SAUCERS_POINTS [saucer.Size]; // Unregister from its field. this.Saucer = null; // Start timer to spawn a new saucer. this.View.WaitToSpawnSaucer(this.SpawnSaucer); // Check if Level Finished. this.CheckLevelFinished(); }
/// <summary> /// Implements <see cref="CgfGames.IGameCtrl.SaucerGone"/>. /// </summary> public void SaucerGone(ISaucerCtrl saucer) { // Unregister from its field. this.Saucer = null; // Start timer to spawn a new saucer if ship alive. if (this.Ship.IsAlive) { this.View.WaitToSpawnSaucer(this.SpawnSaucer); } // Check if Level Finished. this.CheckLevelFinished(); }