Example #1
0
 public void PauseGame(bool bOpenPauseMenu = true)
 {
     m_bIsPaused    = true;
     Time.timeScale = 0.0f;
     if (BeatManager != null)
     {
         BeatManager.Pause();
     }
     if (Menu_Pause != null && bOpenPauseMenu)
     {
         Menu_Pause.gameObject.SetActive(true);
         if (EventSystem != null)
         {
             Menu_Pause.FirstSelectable.Select();
         }
     }
 }