private Node CreateCompoundNode(Vector2 mousePosition, CompoundBehaviourNode compoundNode)
        {
            var node = new CompoundNode(this, compoundNode, mousePosition);

            UpdateCacheNodePosition(node);

            _nodes.Add(compoundNode.Guid, node);
            _nodeCount++;
            return(node);
        }
 public CompoundNode(NodeBasedEditor editor, CompoundBehaviourNode behaviourNode, Vector2 position)
     : base(editor, behaviourNode, position)
 {
     BehaviourNode = behaviourNode;
     OutPoints     = new List <ConnectionPoint>();
 }