protected override void OnEnable() { base.OnEnable(); BehaviorTreeEditor.instance = this; if (_mainToolBar == null) { _mainToolBar = new MainToolBar(); } _isViewCenter = true; EditorApplication.playmodeStateChanged += OnPlayModeStateChanged; }
protected override void OnEnable() { base.OnEnable(); BehaviorTreeEditor.instance = this; if (_mainToolBar == null) _mainToolBar = new MainToolBar(); _isViewCenter = true; EditorApplication.playmodeStateChanged += OnPlayModeStateChanged; }