public override void OnOptionSelected() { MenuManager.areYouSureText = "Are you sure you want to load your previous save data? If no save data exists, continuing will result in starting new game."; // create new thingy this.optionAction = delegate() { if (!ScoreSystem.Load()) { Debug.Log("No save data"); } }; MenuManager.continueOption = this.optionAction; areYouSure.SetActive(true); newMenu.Activate(); }
private void ActivatePauseMenu() { if (PauseMenuControllerExists()) { PauseSystem.isPaused = true; Debug.Log("Test"); pauseController.gameObject.transform.parent.GetComponent <CanvasGroup>().alpha = 1; //pauseController.gameObject.SetActive(true); pauseController.Activate(); pauseController.ResetOptionCount(); Time.timeScale = 0; } else { Debug.LogError("Error! No pause menu controller found by HUD!"); } }
public override void OnOptionSelected() { // SceneManager.LoadScene(levelPrefix + 1); MenuManager.areYouSureText = "Selecting this option will overwrite any previous save data. Are you sure you want to start a new game?"; // create new thingy this.optionAction = delegate() { ScoreSystem.level = 1; ScoreSystem.score = 0; ScoreSystem.Save(); SceneManager.LoadScene(levelPrefix + 0); }; MenuManager.continueOption = this.optionAction; areYouSure.SetActive(true); newMenu.Activate(); }
public override void OnOptionSelected() { // SceneManager.LoadScene(levelPrefix + 1); MenuManager.areYouSureText = "Are you sure you want to exit the game?"; // create new thingy this.optionAction = delegate() { // if(UnityEditor.EditorApplication.isPlaying) // UnityEditor.EditorApplication.isPlaying = false; // else Application.Quit(); }; MenuManager.continueOption = this.optionAction; areYouSurePrompt.SetActive(true); newMenuController.Activate(); }
public override void OnOptionSelected() { settingMenu.SetActive(true); newMenuController.Activate(); }
private void DeactivateScreen() { nextMenu.Activate(); TitleScreen.isActive = false; Destroy(gameObject); }