/* Restarts the entire game. */ public void Restart() { backgroundAudio.Stop(); CursorManager.HideCursor(); Time.timeScale = 1f; LevelIntro.nameOfSceneToLoad = "Level1"; SceneManager.LoadScene("LevelIntro"); }
/* Unpauses the game and hides the pause menu. */ public void Resume() { CursorManager.HideCursor(); eventSystem.SetSelectedGameObject(null); pauseMenuUI.SetActive(false); gameIsPaused = false; Time.timeScale = 1f; }
/* Set up all the text and start the timer. */ private void Awake() { CursorManager.HideCursor(); int index = Random.Range(0, intros.Length - 1); text.text = intros[index]; StartCoroutine(SceneTimer()); }
public void HideCursor() { CursorManager.HideCursor(); }