public void Pause()
 {
     cursorLockScript.Unlock();
     Time.timeScale = 0.0f;
     pauseMenu.SetActive(true);
     tray.GetComponent <TrayCheckpointMovement>().enabled = false;
     text.text = pauseText;
 }
Exemple #2
0
 public void OnEndGame()
 {
     if (m_endGameScreen != null)
     {
         Time.timeScale = 0.0f;
         LockCursor.Unlock();
         m_endGameScreen.SetActive(true);
     }
 }
Exemple #3
0
 public void OnPauseGame()
 {
     Time.timeScale = 0.0f;
     LockCursor.Unlock();
     m_pauseScreen.SetActive(true);
 }