protected MyBehaviorTreeState RunAway()
 {
     if (m_bot.Navigation.Navigating)
     {
         if (m_bot.Navigation.Stuck)
         {
             if (m_usingPathfinding)
             {
                 return(MyBehaviorTreeState.FAILURE);
             }
             else
             {
                 m_usingPathfinding = true;
                 AnimalLogic.EnableCharacterAvoidance(false);
                 AiTargetBase.GotoTarget();
                 return(MyBehaviorTreeState.RUNNING);
             }
         }
         else
         {
             return(MyBehaviorTreeState.RUNNING);
         }
     }
     else
     {
         return(MyBehaviorTreeState.SUCCESS);
     }
 }
 public void Init_GotoAndAimTarget()
 {
     if (AiTargetBase.HasTarget())
     {
         AiTargetBase.GotoTarget();
         AiTargetBase.AimAtTarget();
     }
 }