Exemplo n.º 1
0
        public BehaviorTreeStatus Tick(TimeData deltaTime)
        {
            foreach (var child in m_childrens)
            {
                var childStatus = child.Tick(deltaTime);
                if (childStatus != BehaviorTreeStatus.SUCCESS)
                {
                    return(childStatus);
                }
            }

            return(BehaviorTreeStatus.SUCCESS);
        }
Exemplo n.º 2
0
 public BehaviorTreeStatus Tick(TimeData time)
 {
     return(m_function(time));
 }