Exemple #1
0
 public void ScheduleMovingSteps(IEnumerable <MovingStep> movingSteps)
 {
     ScheduledMovingSteps.Clear();
     foreach (var movingStep in movingSteps)
     {
         ScheduledMovingSteps.Enqueue(movingStep);
     }
 }
Exemple #2
0
 private void ScheduleNextStep()
 {
     if (CurrentMovingStep == null && ScheduledMovingSteps.Count > 0)
     {
         Progress                     = 0;
         PreviousFacing               = transform.forward;
         PreviousPosition             = transform.position;
         CurrentMovingStep            = ScheduledMovingSteps.Dequeue();
         CurrentMovingStepProgression = 0;
     }
 }