From df5481265f8bf04548c8f51e5fffc9449547f423 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期五, 17 四月 2026 18:57:15 +0800
Subject: [PATCH] 602 坐骑优化-客户端 修复bug
---
Main/Component/UI/Decorate/Tweens/TweenEx.cs | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/Main/Component/UI/Decorate/Tweens/TweenEx.cs b/Main/Component/UI/Decorate/Tweens/TweenEx.cs
index a973999..d31e5c8 100644
--- a/Main/Component/UI/Decorate/Tweens/TweenEx.cs
+++ b/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);
--
Gitblit v1.8.0