Пример #1
0
 public override void traverse(NodeHandler_t handler, Agent pAgent, object user_data)
 {
     if (handler(this, pAgent, user_data))
     {
         for (int i = 0; i < this.m_children.Count; ++i)
         {
             BehaviorTask task = this.m_children[i];
             task.traverse(handler, pAgent, user_data);
         }
     }
 }
Пример #2
0
 public override void traverse(NodeHandler_t handler, Agent pAgent, object user_data)
 {
     if (handler(this, pAgent, user_data))
     {
         for (int i = 0; i < this.m_children.get_Count(); i++)
         {
             BehaviorTask behaviorTask = this.m_children.get_Item(i);
             behaviorTask.traverse(handler, pAgent, user_data);
         }
     }
 }