Skip to content

Commit 83bba72

Browse files
committed
fixed a bug of GTween.toDouble
1 parent 913e780 commit 83bba72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Assets/Scripts/Tween/GTweener.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,7 @@ void Update()
702702
d = Math.Round(d);
703703
_deltaValue.d = d - _value.d;
704704
_value.d = d;
705+
_value.x = (float)d;
705706
}
706707
else if (_valueSize == 6)
707708
{
@@ -743,6 +744,7 @@ void Update()
743744
_deltaValue[i] = f - _value[i];
744745
_value[i] = f;
745746
}
747+
_value.d = _value.x;
746748
}
747749

748750
if (_target != null && _propType != TweenPropType.None)

0 commit comments

Comments
 (0)