public void Rescan()
{
_nodeList.Clear();
_instanceIDToNodeMap.Clear();
// Enumerate all the node instances.
foreach (var i in _instance.GetComponentsInChildren<Wiring.NodeBase>())
{
var node = new Node(i);
_nodeList.Add(node);
_instanceIDToNodeMap.Add(i.GetInstanceID(), node);
}
}