public static BehaviourNode.Status StepBehaviourTree(BehaviourTree tree) { if (tree.IsRunning()) { tree.Update(); } return(tree.LastStatus()); }
public static BehaviourNode.Status RunBehaviourTree(BehaviourTree tree) { StartBehaviourTree(tree); while (tree.IsRunning()) { tree.Update(); } return(tree.LastStatus()); }