hch
2025-09-08 14a9dc8c9b83dd7627f8ed99a163ebc41c1f9b8e
Main/Component/UI/Decorate/Tweens/UIAlphaTween.cs
@@ -173,6 +173,9 @@
                case WrapMode.PingPong:
                    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);
@@ -181,7 +184,8 @@
            switch (wrapMode)
            {
                case WrapMode.Once:
                    if (t > curveLength && doTween)
            case WrapMode.PingPongOnce:
                if (accumulatedTime > duration && doTween)
                    {
                        OnOnceEnd();
                        doTween = false;
@@ -197,6 +201,16 @@
        protected virtual void OnOnceEnd()
        {
        if (wrapMode == WrapMode.PingPongOnce)
        {
            SetStartState();
        }
        else
        {
            canvasGroup.alpha = reversal ? from : to;
        }
            if (onPlayEndCallBack != null)
            {
                onPlayEndCallBack();
@@ -221,6 +235,7 @@
            Once,
            Loop,
            PingPong,
        PingPongOnce,
        }
    }