private void RemoveTreeConnection() { //out's child remove in this.outPoint.node.childs.Remove(this.inPoint.node); //out's child remove in BaseNodeData outNodeData = NodeDataManager.Get(this.outPoint.node); BaseNodeData inNodeData = NodeDataManager.Get(this.inPoint.node); NodeDataManager.Remove(this, outNodeData); }
public static void RemoveTree(BaseNode node) { NodeDataManager.Remove(node); if (node.childs.Count > 0) { for (int i = 0; i < node.childs.Count; i++) { DumpTree(node.childs[i]); } } }