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