private void OnEndGameOptionChoice(EndGameOption choice) { audioManager.Stop(SC_GameModel.BG_MUSIC_GAMEPLAY_VAR_NAME); if (choice == EndGameOption.RESTART) { endGameOptionsAnimator.SetBool(SC_GameModel.END_GAME_TRIGGER, false); model.RestartGame(); Init(); } else { SharedDataHandler.nextScreenRequested = Scenes.MainMenu.ToString(); SceneManager.LoadScene(SC_MenuModel.SCENE_PREFIX + Scenes.Login); } }
public void OnClickedSinglePlayer() { SharedDataHandler.SetMultiplayerMode(false); audioManager.Stop(SC_MenuModel.BG_MUSIC_MENU_VAR_NAME); MoveToScene(Scenes.SinglePlayer.ToString()); }