public void MainMenu() { stopAtmosphericAndMusic(); introScreen.SetActive(true); GameObject.Find("DeathScreen").GetComponent <Animator>().SetTrigger("StartGame"); //GameObject.Find("EventSystem").GetComponent<GUI_FirstSelected>().setFirstSelected(GameObject.Find("Play")); Time.timeScale = 0; VibrateController.stopVibrations(); }
public void Pause() { _paused = true; auxObj.SetActive(true); GameObject.Find("EventSystem").GetComponent <GUI_FirstSelected>().setFirstSelected(GameObject.Find("Pause_Resume")); Cursor.visible = true; Time.timeScale = 0f; VibrateController.stopVibrations(); }
public void Quit() { VibrateController.stopVibrations(); SceneManager.LoadScene(0); }