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