private static void EditorApplicationOnPlayModeStateChanged(UnityEditor.PlayModeStateChange playModeStateChange) { var stopPlay = playModeStateChange == UnityEditor.PlayModeStateChange.ExitingPlayMode; if (!stopPlay) { return; } DebugLogger.Log(null, "EditorApplicationOnPlayModeStateChanged", LogColor.Red); ModelContr.WriteAll(); ModelContr.UnRegisterAll(); }
public void Dispose() { ModelContr.WriteAll(); }
private void OnceApplicationQuit() { ModelContr.WriteAll(); }
private void OnApplicationPause() { ModelContr.WriteAll(); }