コード例 #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));
 }
コード例 #7
0
 public override bool Process(AiController theOwner)
 {
     return(theOwner.IsPlayerInAttackRange());
 }
コード例 #8
0
 public override bool Process(AiController theOwner)
 {
     theOwner.Patrol(PatrolRange);
     return(true);
 }
コード例 #9
0
ファイル: Attack.cs プロジェクト: zhejimanyu/GameAi
 public override bool Process(AiController theOwner)
 {
     theOwner.Attack();
     return(true);
 }