Exemple #1
0
 void FixedUpdate()
 {
     if (currentState != null)
     {
         float progress = 1;
         if (currentState.totalTime > 0)
         {
             progress = stateTime / currentState.totalTime;
         }
         currentState.FixedUpdate(progress);
     }
 }