示例#1
0
        public void DeleteNode(NodeEditorNode node)
        {
            _nodes.Remove(node);
            foreach(NodeEditorEdge edge in _edges) {
                if(edge.StartNode == node) {
                    edge.DisconnectStart();
                }

                if(edge.EndNode == node) {
                    edge.DisconnectEnd();
                }
            }
        }
示例#2
0
 protected void AddNode(NodeEditorNode node)
 {
     _nodes.Add(node);
 }