public void AddNode(NodeInfo nodeInfo) { var node = CurrentDataFlowGraph.AddNode(nodeInfo, ModelManager.Instance.CurrentActiveModel.GetComponent <XLander>()); if (node == null) { return; } AddNodeDisplay(nodeInfo, node, true); }
public void RemoveEdge(UIControlledNodeField from, UIControlledNodeField to) { CurrentDataFlowGraph.RemoveEdge(from.NodeInstance, from.FieldInfo, to.NodeInstance, to.FieldInfo); }
public void RemoveNode(NodeEntry entry) { CurrentDataFlowGraph.RemoveNode(entry.NodeInstance); Destroy(entry.gameObject); }