hch
2025-09-04 62188b271cce5e3aec5ca40d58c30f08643e2f60
Main/Component/UI/Decorate/Tweens/TweenEx.cs
@@ -99,14 +99,8 @@
            switch (wrapMode)
            {
                case WrapMode.Once:
                    if (accumulatedTime > duration)
                    {
                        OnOnceEnd();
                        doTween = false;
                    }
                    break;
                case WrapMode.PingPongOnce:
                    if (accumulatedTime > duration*2)
                    if (accumulatedTime > duration)
                    {
                        OnOnceEnd();
                        doTween = false;
@@ -173,9 +167,11 @@
                t = Mathf.Repeat((accumulatedTime / duration) * curveLength, 1);
                break;
            case WrapMode.PingPong:
            case WrapMode.PingPongOnce:
                t = Mathf.PingPong((accumulatedTime / duration) * curveLength, 1);
                break;
            case WrapMode.PingPongOnce:
                t = Mathf.PingPong((accumulatedTime / (duration/2)) * curveLength, 1);
                break;
        }
        var value = curve.Evaluate(reversal ? curveLength - t : t);