public void Resume()
 {
     cursorLockScript.Lock();
     Time.timeScale = 1.0f;
     pauseMenu.SetActive(false);
     tray.GetComponent <TrayCheckpointMovement>().enabled = true;
 }
Пример #2
0
    public void OnPlayAgainButtonClicked()
    {
        Time.timeScale = 1.0f;
        LockCursor.Lock();
        m_endGameScreen.SetActive(false);

        SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
    }
Пример #3
0
 public void OnResumeButtonClicked()
 {
     Time.timeScale = 1.0f;
     LockCursor.Lock();
     m_pauseScreen.SetActive(false);
 }