예제 #1
0
 public void Pause()
 {
     OnPause?.Invoke(true);
     _isPaused      = true;
     Time.timeScale = 0;
     _pauseMenu.SetActive(true);
     Cursor.lockState = CursorLockMode.None;
 }
예제 #2
0
 private void Pause()
 {
     OnPause?.Invoke();
 }