public override void AddChild(BehaviorNodeBase <T> child) { if (Child != null) { throw new System.ArgumentException("Decorator can only have one child!", "child"); } Child = child; }
public BehaviorTree(BehaviorNodeBase <T> root) { this.root = root; }
public virtual void AddChild(BehaviorNodeBase <T> child) { }