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