Exemple #1
0
 public void ResetGame()
 {
     //destroy placed turrets
     TurretManager.instance.RecallTurrets();
     //reset health/mana
     ResourceManager.instance.Reset();
     //reset spawner
     spawnerScriptRef.Reset();
     //reset flashcard manager
     FlashcardManager.instance.Reset();
     //change window to game to reset ui
     ChangeGameWindow(WindowState.Game);
     turretTrayRef.ToggleTray();
     UIManager.instance.SetGameOverElementsActive(false);
 }