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