Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 public void Dispose()
 {
     ModelContr.WriteAll();
 }
Exemplo n.º 3
0
 private void OnceApplicationQuit()
 {
     ModelContr.WriteAll();
 }
Exemplo n.º 4
0
 private void OnApplicationPause()
 {
     ModelContr.WriteAll();
 }