FluentBehaviourTree.InverterNode.AddChild C# (CSharp) Method

AddChild() public method

Add a child to the parent node.
public AddChild ( IBehaviourTreeNode child ) : void
child IBehaviourTreeNode
return void
        public void AddChild(IBehaviourTreeNode child)
        {
            if (this.childNode != null)
            {
                throw new ApplicationException("Can't add more than a single child to InverterNode!");
            }

            this.childNode = child;
        }