public void Simulate() { if (MWBEditor.EnableMWBEditorMode(this)) { CleanUp(); StartCoroutine(Run()); } }
static void onPlayModeStateChanged(PlayModeStateChange state) { switch (state) { case PlayModeStateChange.ExitingPlayMode: EditorPrefs.SetBool(c_MenuAnimationName, false); Menu.SetChecked(c_MenuAnimationName, false); MWBEditor.DisableMWBEditorMode(); break; } }