public override TreeBaseNode WalkGraphToCreateTree(BehaviourTree.BehaviourTree tree, Context currentContext)
        {
            RuntimeCondition brtc =
                new RuntimeCondition(conditionalSelector, tree.owner);

            TreeConditionNode node = new TreeConditionNode(tree, currentContext)
            {
                runtimeCondition = brtc
            };

            return(WalkDecoratorNode(tree, node));
        }
 protected override void OnCreation()
 {
     conditionNode = new TreeConditionNode(null, null);
     thisTreeNode  = conditionNode;
 }
Esempio n. 3
0
 public virtual T Visit(TreeConditionNode node, T state)
 {
     return(DefaultVisit(node, state));
 }