public void SetReferenced(BehaviourNode node) { referencedNodes.Clear(); BehaviourNode[] refs = node.GetReferencedNodes(); if (refs != null && refs.Length != 0) { referencedNodes.AddRange(refs); } }