void OnApplicationQuit() { HTTPManager.Logger.Information("HTTPUpdateDelegator", "OnApplicationQuit Called!"); if (OnBeforeApplicationQuit != null) { try { if (!OnBeforeApplicationQuit()) { HTTPManager.Logger.Information("HTTPUpdateDelegator", "OnBeforeApplicationQuit call returned false, postponing plugin shutdown."); return; } } catch (System.Exception ex) { HTTPManager.Logger.Exception("HTTPUpdateDelegator", string.Empty, ex); } } IsThreadRunning = false; if (!IsCreated) { return; } IsCreated = false; HTTPManager.OnQuit(); }
void OnApplicationQuit() { if (OnBeforeApplicationQuit != null) { try { if (!OnBeforeApplicationQuit()) { HTTPManager.Logger.Information("HTTPUpdateDelegator", "OnBeforeApplicationQuit call returned false, postponing plugin shutdown."); return; } } catch (System.Exception ex) { HTTPManager.Logger.Exception("HTTPUpdateDelegator", string.Empty, ex); } } IsThreadRunning = false; if (!IsCreated) { return; } IsCreated = false; HTTPManager.OnQuit(); #if UNITY_EDITOR UnityEditor.EditorApplication.update -= Update; UnityEditor.EditorApplication.playmodeStateChanged -= OnPlayModeStateChanged; #endif }
void OnApplicationQuit() { if (!IsCreated) { return; } IsCreated = false; HTTPManager.OnQuit(); #if UNITY_EDITOR UnityEditor.EditorApplication.update -= Update; UnityEditor.EditorApplication.playmodeStateChanged -= OnPlayModeStateChanged; #endif }
private void OnApplicationQuit() { HTTPManager.OnQuit(); }
void OnDisable() { HTTPManager.OnQuit(); }