Skip to content

Commit a41360c

Browse files
committed
Time elapsed updated before frame break.
1 parent 6e727cd commit a41360c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Runtime/Tween.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,10 @@ private IEnumerator Update()
386386
// Perform the tween
387387
UpdateCurrentValue(GetTweenedValueAt(ElapsedTime / TotalDuration));
388388

389-
yield return null;
390-
391389
// Increment elapsed time
392390
ElapsedTime += Time.deltaTime;
391+
392+
yield return null;
393393
}
394394

395395
// Snap to the end value

0 commit comments

Comments
 (0)