private static void PlayStateChanged(PlayModeStateChange state) { if (state.Equals(PlayModeStateChange.ExitingPlayMode)) { instance.StopAcceptingMessages(); } }
private void EditorApplication_playModeStateChanged(PlayModeStateChange obj) { if (obj.Equals(PlayModeStateChange.ExitingPlayMode)) { OnApplicationExit(); } }
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(); }