From 6d28f3f5d21449ac1d71fced578fa2e1db99b2b4 Mon Sep 17 00:00:00 2001 From: kyubuns Date: Thu, 18 Mar 2021 10:20:09 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20float=E8=AA=A4=E5=B7=AE=E3=81=AB?= =?UTF-8?q?=E3=82=88=E3=82=8Aduration=E3=81=AB=E9=9D=9E=E5=B8=B8=E3=81=AB?= =?UTF-8?q?=E5=B0=8F=E3=81=95=E3=81=84=E5=80=A4=E3=82=92=E5=85=A5=E3=82=8C?= =?UTF-8?q?=E3=82=8B=E3=81=A8=E7=B6=9A=E3=81=8D=E3=81=AE=E3=82=A2=E3=83=8B?= =?UTF-8?q?=E3=83=A1=E3=83=BC=E3=82=B7=E3=83=A7=E3=83=B3=E3=81=8C=E9=80=94?= =?UTF-8?q?=E4=B8=AD=E3=81=A7=E4=B8=AD=E6=96=AD=E3=81=95=E3=82=8C=E3=82=8B?= =?UTF-8?q?=E3=81=93=E3=81=A8=E3=81=8C=E3=81=82=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/AnimeTask/Scripts/Animator/ConcatAnimator.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Assets/AnimeTask/Scripts/Animator/ConcatAnimator.cs b/Assets/AnimeTask/Scripts/Animator/ConcatAnimator.cs index a9b2430..fd6b387 100644 --- a/Assets/AnimeTask/Scripts/Animator/ConcatAnimator.cs +++ b/Assets/AnimeTask/Scripts/Animator/ConcatAnimator.cs @@ -34,10 +34,11 @@ public ConcatAnimator(IAnimator animator1, IEnumerable { while (true) { + var f = time - usedTime; if (currentAnimator == null) return (currentValue, usedTime); - var (v, used) = currentAnimator.Update(time - usedTime); + var (v, used) = currentAnimator.Update(f); - if (used < time - usedTime) + if (used < f) { currentValue = v; usedTime += used;