From 39001a600fcae2bcf27c225df8752d75fb92fef4 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 31 十月 2025 11:18:26 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/Component/UI/Decorate/Tweens/PositionTween.cs |   71 +++++++++++++++++------------------
 1 files changed, 34 insertions(+), 37 deletions(-)

diff --git a/Main/Component/UI/Decorate/Tweens/PositionTween.cs b/Main/Component/UI/Decorate/Tweens/PositionTween.cs
index 20c9db1..8663e4f 100644
--- a/Main/Component/UI/Decorate/Tweens/PositionTween.cs
+++ b/Main/Component/UI/Decorate/Tweens/PositionTween.cs
@@ -1,48 +1,45 @@
 锘縰sing UnityEngine;
 using System.Collections;
 
-namespace vnxbqy.UI
+public class PositionTween : TweenEx
 {
-    public class PositionTween : Tween
+
+    public override void SetStartState()
     {
+        base.SetStartState();
+        this.rectTransform.anchoredPosition = from;
+    }
 
-        public override void SetStartState()
+    public override void SetEndState()
+    {
+        base.SetEndState();
+        this.rectTransform.anchoredPosition = to;
+    }
+
+    protected override void OnPrepare()
+    {
+        base.OnPrepare();
+        this.rectTransform.anchoredPosition = reversal ? to : from;
+    }
+
+    protected override void OnOnceEnd()
+    {
+        if (wrapMode == WrapMode.PingPongOnce)
         {
-            base.SetStartState();
-            this.rectTransform.anchoredPosition = from;
+            SetStartState();
         }
-
-        public override void SetEndState()
-        {
-            base.SetEndState();
-            this.rectTransform.anchoredPosition = to;
+        else
+        { 
+            this.rectTransform.anchoredPosition = reversal ? from : to;
         }
-
-        protected override void OnPrepare()
-        {
-            base.OnPrepare();
-            this.rectTransform.anchoredPosition = reversal ? to : from;
-        }
-
-        protected override void OnOnceEnd()
-        {
-            if (wrapMode == WrapMode.PingPongOnce)
-            {
-                SetStartState();
-            }
-            else
-            { 
-                this.rectTransform.anchoredPosition = reversal ? from : to;
-            }
-
-            base.OnOnceEnd();
-        }
-
-        protected override void UpdateVector3()
-        {
-            base.UpdateVector3();
-            this.rectTransform.anchoredPosition = CalculateVector3();
-        }
+        base.OnOnceEnd();
 
     }
-}
+
+    protected override void UpdateVector3()
+    {
+        base.UpdateVector3();
+        this.rectTransform.anchoredPosition = CalculateVector3();
+    }
+
+}
\ No newline at end of file

--
Gitblit v1.8.0