示例#1
0
        public static BehaviourNode.Status StepBehaviourTree(BehaviourTree tree)
        {
            if (tree.IsRunning())
            {
                tree.Update();
            }

            return(tree.LastStatus());
        }
示例#2
0
        public static BehaviourNode.Status RunBehaviourTree(BehaviourTree tree)
        {
            StartBehaviourTree(tree);
            while (tree.IsRunning())
            {
                tree.Update();
            }

            return(tree.LastStatus());
        }