diff --git a/Assets/AnimeTask/Scripts/Anime.cs b/Assets/AnimeTask/Scripts/Anime.cs index a87d598..aad18cc 100644 --- a/Assets/AnimeTask/Scripts/Anime.cs +++ b/Assets/AnimeTask/Scripts/Anime.cs @@ -34,7 +34,7 @@ private static async UniTask PlayInternal(IAnimator animator, ITranslator< var (t, used) = animator.Update(time); translator.Update(t); if (used < time) break; - await UniTask.Yield(PlayerLoopTiming.Update, cancellationToken); + await UniTask.NextFrame(PlayerLoopTiming.Update, cancellationToken); time += scheduler.DeltaTime; } @@ -63,7 +63,7 @@ private static async UniTask DelayInternal(float duration, IScheduler scheduler, while (!cancellationToken.IsCancellationRequested && !skipToken.IsSkipRequested && playState == Application.isPlaying) { if (duration < time) break; - await UniTask.Yield(PlayerLoopTiming.Update, cancellationToken); + await UniTask.NextFrame(PlayerLoopTiming.Update, cancellationToken); time += scheduler.DeltaTime; } cancellationToken.ThrowIfCancellationRequested();