예제 #1
0
 void OnApplicationPause(bool pauseStatus)
 {
     GameManager.Instance.EnableDelayCheck(!pauseStatus);
     if (pauseStatus)
     {
         AppPauseBeforeScene         = Application.loadedLevelName;
         isLoadingScene              = StageMgr.Loading;
         Application.targetFrameRate = 1;
         leaveTime_ = Time.realtimeSinceStartup;
         CommonEvent.ExcuteAppPause();
     }
     else
     {
         Application.targetFrameRate = 30;
         CommonEvent.ExcuteAppResume();
         if (StageMgr.Loading)
         {
             StageMgr.OnSceneLoaded += CheckReconnection;
         }
         else
         {
             CheckReconnection(StageMgr.Scene_name);
         }
     }
 }