void loadLose() { // StartOptions.showPanels.ShowMenu(); //Destroy(mainMenu); PlayMusic.stopMusic(); SceneManager.LoadSceneAsync("loseMenu"); //Debug.Log(StartOptions.inMainMenu); }
public void LoadDelayed() { //Pause button now works if escape is pressed since we are no longer in Main menu. inMainMenu = false; //Hide the main menu UI element showPanels.HideMenu(); //Load the selected scene, by scene index number in build settings SceneManager.LoadScene(1, LoadSceneMode.Single); playMusic.stopMusic(); }