static void initwin()
 {
     if (_Instance == null)
     {
         _Instance = ( BehaviourTreeWindow )GetWindow(typeof(BehaviourTreeWindow));
     }
 }
 void Update()
 {
     _Instance = this;
     if (selectedNode != null)
     {
         Repaint();
     }
 }
Beispiel #3
0
 private void OnEnable()
 {
     Instance    = this;
     _nodeEditor = new BehaviourTreeNodeEditor(this);
     _nodeEditor.OnEnable();
     NodeBase.Repaint            = Repaint;
     Selection.selectionChanged += SelectionAssets;
 }
Beispiel #4
0
 public BehaviourTreeNodeEditor(BehaviourTreeWindow window)
 {
     _window = window;
 }