void Pause() { //GameObject firstPerson = GameObject.FindGameObjectWithTag("Player"); Debug.Log(firstPerson.name); pauseMenuInterface.SetActive(true); HUD_Interface.SetActive(false); firstPerson.GetComponent <FirstPersonController>().enabled = false; Time.timeScale = 0f; isPaused = true; }
public void LoadMainMenu() { pauseMenuInterface.SetActive(false); helpInterface.SetActive(false); settingsInterface.SetActive(false); HUD_Interface.SetActive(true); firstPerson.GetComponent <FirstPersonController>().enabled = true; Time.timeScale = 1f; SceneManager.LoadScene("Main Menu"); }
public void Resume() { pauseMenuInterface.SetActive(false); helpInterface.SetActive(false); settingsInterface.SetActive(false); HUD_Interface.SetActive(true); //GameObject firstPerson = GameObject.FindGameObjectWithTag("Player"); Debug.Log(firstPerson.name); if (!Puzzle_HUD.activeInHierarchy) { firstPerson.GetComponent <FirstPersonController>().enabled = true; } Time.timeScale = 1f; isPaused = false; }