Пример #1
0
 private IEnumerator AnimateMovement(AnimationPath animationPath)
 {
     while (true)
     {
         transform.position = animationPath.UpdatePosition();
         modelTransform.rotation = animationPath.UpdateRotation();
         if (animationPath.IsFinishedUpdating())
         {
             break;
         }
         yield return null;
     }
     isActing = false;
 }