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