void ProcessApplicationPause(bool appPause) { if (onApplicationPausePreProcess != null) { onApplicationPausePreProcess(appPause); } #if !UNITY_EDITOR && UNITY_IOS if (appPause == false) { CriAtomPlugin.CallOnApplicationResume_IOS(); } #endif #if UNITY_STANDALONE || UNITY_EDITOR if (!KeepPlayingSoundOnPause) { CriAtomPlugin.Pause(appPause); } #else #if !UNITY_IOS CriAtomPlugin.Pause(appPause); #endif #endif if (onApplicationPausePostProcess != null) { onApplicationPausePostProcess(appPause); } }
void ProcessApplicationPause(bool appPause) { if (onApplicationPausePreProcess != null) { onApplicationPausePreProcess(appPause); } #if !UNITY_EDITOR && UNITY_IOS if (appPause == false) { CriAtomPlugin.CallOnApplicationResume_IOS(); } #endif CriAtomPlugin.Pause(appPause); if (onApplicationPausePostProcess != null) { onApplicationPausePostProcess(appPause); } }