Esempio n. 1
0
 public void TransitionUpdate(float dt)
 {
     if (currentTransition.IsFinished())
     {
         CameraTransition previousTransition = currentTransition;
         previousTransition.TransitionExit();
         currentTransition = previousTransition.nextTransition;
         if (currentTransition)
         {
             TransitionStart();
         }
         else
         {
             lastState = previousTransition.GetState();
         }
     }
     else
     {
         currentTransition.TransitionUpdate(dt);
         lastState = currentTransition.GetState();
     }
 }