protected override void OnEnable () { base.OnEnable (); FsmEditor.instance = this; variableEditor = new VariableEditor (); if (mainToolbar == null) { mainToolbar = new MainToolbar (); } if (shortcutEditor == null) { shortcutEditor = new ShortcutEditor (); } centerView = true; #if UNITY_2017_3_OR_NEWER EditorApplication.playModeStateChanged += OnPlayModeStateChanged; #else EditorApplication.playmodeStateChanged += OnPlayModeStateChanged; #endif ErrorChecker.CheckForErrors (); }
protected override void OnEnable () { base.OnEnable (); FsmEditor.instance = this; variableEditor = new VariableEditor (); if (mainToolbar == null) { mainToolbar= new MainToolbar(); } centerView = true; EditorApplication.playmodeStateChanged += OnPlayModeStateChanged; ErrorChecker.CheckForErrors (); }