Exemplo n.º 1
0
 private void OnApplicationPause(bool pauseStatus)
 {
     if (pauseStatus)
     {
         PlayerPrefs.Save();
     }
     delegated.OnApplicationPause(pauseStatus);
 }
Exemplo n.º 2
0
 private void OnApplicationPause(bool pauseStatus)
 {
     if (pauseStatus)
     {
         PlayerPrefs.Save();
         if (Settings.SendGameRunningEveryMinute)
         {
             if (isGameRunningCoroutineRunning)
             {
                 StopCoroutine(gameRunningEventCoroutine);
                 isGameRunningCoroutineRunning = false;
             }
         }
     }
     delegated.OnApplicationPause(pauseStatus);
     if (!pauseStatus)
     {
         if (Settings.SendGameRunningEveryMinute)
         {
             gameRunningEventCoroutine = GameHeartbeat(gameRunningEventInterval);
             StartCoroutine(gameRunningEventCoroutine);
         }
     }
 }