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