Beispiel #1
0
 void GetNextAction()
 {
     if (CurrentAction != null)
     {
         CurrentAction.EndAction();
     }
     CurrentAction = (ActionPlan != null ? (ActionPlan.Count > 0 ? ActionPlan.Dequeue() : null) : null);
     if (CurrentAction != null)
     {
         CurrentAction.BeginAction();
     }
     else
     {
         if (GOAPPlanController.PC != null)
         {
             GOAPPlanController.PC.RequestPlan(this);
         }
     }
 }