private static void PlayStateChanged(PlayModeStateChange state)
 {
     if (state.Equals(PlayModeStateChange.ExitingPlayMode))
     {
         instance.StopAcceptingMessages();
     }
 }
예제 #2
0
 private void EditorApplication_playModeStateChanged(PlayModeStateChange obj)
 {
     if (obj.Equals(PlayModeStateChange.ExitingPlayMode))
     {
         OnApplicationExit();
     }
 }
예제 #3
0
 static void StateChanged(PlayModeStateChange state)
 {
     if (state.Equals(PlayModeStateChange.EnteredEditMode))
     {
         if (EditorPrefs.HasKey(LAST_ACTIVE_SCENE) &&
             !EditorSceneManager.GetActiveScene().Equals(EditorPrefs.GetString(LAST_ACTIVE_SCENE)))
         {
             EditorSceneManager.OpenScene(EditorPrefs.GetString(LAST_ACTIVE_SCENE));
         }
     }
 }
 public void OnPlayModeChanged(PlayModeStateChange state)
 {
     isPlaying = state.Equals(PlayModeStateChange.EnteredPlayMode);
     ClearMaps();
 }