public void PauseGame() { if (FPcontrol) { FPcontrol.SetCursorLock(false); FPcontrol.enabled = false; } isPaused = true; PauseMenu.SetActive(true); Time.timeScale = 0; }
public void PauseGame() { if (FPcontrol) { FPcontrol.SetCursorLock(false); FPcontrol.enabled = false; } isPaused = true; PauseMenu.SetActive(true); Time.timeScale = 0; }