Beispiel #1
0
 public void GameOver()
 {
     //remove flashcard tray
     flashcardTrayRef.ToggleTray();
     //stop spawner
     spawnerScriptRef.StopWave();
     //destroy remaining enemies
     spawnerScriptRef.DestroyEnemiesOnBoard();
     //some kind of game over screen
     UIManager.instance.gameOverText.text = "Game Over";
     UIManager.instance.UpdateGameOverStatsElement();
     UIManager.instance.SetGameOverElementsActive(true);
 }