Пример #1
0
 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;
 }
Пример #2
0
 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");
 }
Пример #3
0
 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;
 }