public void DoCurrentObjective(float deltaTime)
 {
     if (CurrentObjective == null || (CurrentObjective.GetPriority(this) < OrderPriority && WaitTimer > 0.0f))
     {
         WaitTimer -= deltaTime;
         character.AIController.SteeringManager.Reset();
         return;
     }
     CurrentObjective?.TryComplete(deltaTime);
 }
Example #2
0
 public float GetCurrentPriority()
 {
     return(CurrentObjective == null ? 0.0f : CurrentObjective.GetPriority());
 }