/// <summary> /// Handles un pauses /// </summary> public void UnPauseGame() { isPaused = false; // release music AudioListener.pause = false; Time.timeScale = 1; showPanels.HidePausePanel(); showPanels.ShowGameButtons(); }
/// <summary> /// start button clicked -> load scene /// </summary> public void StartButtonClicked() { showPanels.HideMenuPanel(); showPanels.ToggleBackground(false); music.StopPlayMusic(); LoadGame(); // show buttons on game UI showPanels.ShowGameButtons(); }