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; EditorApplication.playmodeStateChanged += OnPlayModeStateChanged; 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 (); }