Esempio n. 1
0
        public static void ClearCameraMovements()
        {
            WaitingMovements.Clear();
            CurrentMovement = null;

            WaitingLookMovements.Clear();
            CurrentLookMovement = null;
        }
Esempio n. 2
0
 public static void EnqueueLookMovement(SplineMovement nextLookMovement)
 {
     if (CurrentLookMovement == null)
     {
         AssignNextLookMovement(nextLookMovement);
     }
     else
     {
         WaitingLookMovements.Enqueue(nextLookMovement);
     }
 }
Esempio n. 3
0
        private static void ConcludeLookMovement(SplineMovement currentLookMovement)
        {
            PriorLookPoint   = CurrentLookPoint;
            CurrentLookPoint = currentLookMovement.TargetTransform;

            if (WaitingLookMovements.Any())
            {
                AssignNextLookMovement(WaitingLookMovements.Dequeue());
            }
            else
            {
                CurrentLookMovement = null;
            }
        }