Ejemplo n.º 1
0
 public override bool Process(AiController theOwner)
 {
     foreach (IBehaviorTreeNode _node in children)
     {
         if (!_node.Process(theOwner))
         {
             return(false);
         }
     }
     return(true);
 }
Ejemplo n.º 2
0
 public override bool Process(AiController theOwner)
 {
     return(theOwner.CanNotFindPlayer());
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 由子类实现
 /// </summary>
 /// <param name="theOwner"></param>
 /// <returns></returns>
 public virtual bool Process(AiController theOwner)
 {
     return(child.Process(theOwner));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 由子树实现
 /// </summary>
 /// <param name="theOwner"></param>
 /// <returns></returns>
 public virtual bool Process(AiController theOwner)
 {
     return(true);
 }
Ejemplo n.º 5
0
 public bool Process(AiController theOwner)
 {
     return(root.Process(theOwner));
 }
Ejemplo n.º 6
0
 public override bool Process(AiController theOwner)
 {
     return(!base.Process(theOwner));
 }
Ejemplo n.º 7
0
 public override bool Process(AiController theOwner)
 {
     return(theOwner.IsPlayerInAttackRange());
 }
Ejemplo n.º 8
0
 public override bool Process(AiController theOwner)
 {
     theOwner.Patrol(PatrolRange);
     return(true);
 }
Ejemplo n.º 9
0
 public override bool Process(AiController theOwner)
 {
     theOwner.Attack();
     return(true);
 }