Exemple #1
0
        void OnApplicationPause(bool pauseStatus)
        {
            if (IsEditor())
            {
                return;
            }

            #if UNITY_IOS
            // No action, iOS SDK is subscribed to iOS lifecycle notifications.
            #elif UNITY_ANDROID
            if (pauseStatus)
            {
                AdjustAndroid.OnPause();
            }
            else
            {
                AdjustAndroid.OnResume();
            }
            #elif (UNITY_WSA || UNITY_WP8)
            if (pauseStatus)
            {
                AdjustWindows.OnPause();
            }
            else
            {
                AdjustWindows.OnResume();
            }
            #else
            Debug.Log(errorMsgPlatform);
            #endif
        }
Exemple #2
0
 private void OnApplicationPause(bool pauseStatus)
 {
     if (!IsEditor())
     {
         if (pauseStatus)
         {
             AdjustAndroid.OnPause();
         }
         else
         {
             AdjustAndroid.OnResume();
         }
     }
 }