private void ConnectCallback(object obj) { var n = obj as AFlowNode; if (n != null) { _startConnection = n; } }
private void NodeLeftClicked(ANode node) { if (_tree == null || !_tree.Nodes.Contains(node)) { return; } Selection.activeObject = node; if (_startConnection != null) { if (_startConnection != node && _tree.ConnectNodes(_startConnection, node)) { AssetDatabase.SaveAssets(); } _startConnection = null; } }