Beispiel #1
0
        void ProcessNodeEvents()
        {
            NodeGroup selected = null;

            foreach (var node in Enumerable.Reverse(nodes))
            {
                if (node.UpdateSelection(Event.current, selection))
                {
                    selected = node;
                }
            }
            if (selected != null)
            {
                // push node to the back of the list so it gets drawn on top
                nodes.Remove(selected);
                nodes.Add(selected);
            }
        }
Beispiel #2
0
 void RemoveNode(NodeGroup node)
 {
     nodes.Remove(node);
 }