//Closes the level and returns to the Level Selection Menu public void ReturnToLevelSelect() { timeInLevel = 0.0f; //reset the time endMenu.SetActive(false); //disables the end score screen currentLevel.level.SetActive(false); //disables the current level pauseMenu.TogglePause(false); //disables the pause menu levelMenu.ActivateLevelSelectMenu(true); //opens the level select menu with updated scores and unlocked levels }
//Opens the level select menu void OpenLevels() { ActivateMainMenu(false); levelMenu.ActivateLevelSelectMenu(true); }