From 62188b271cce5e3aec5ca40d58c30f08643e2f60 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 04 九月 2025 23:20:17 +0800
Subject: [PATCH] 117 【武将】武将系统 - 天赋部分,优化自动战斗
---
Main/Component/UI/Decorate/Tweens/PositionTween.cs | 68 +++++++++++++++++-----------------
1 files changed, 34 insertions(+), 34 deletions(-)
diff --git a/Main/Component/UI/Decorate/Tweens/PositionTween.cs b/Main/Component/UI/Decorate/Tweens/PositionTween.cs
index 8ccc0b0..8663e4f 100644
--- a/Main/Component/UI/Decorate/Tweens/PositionTween.cs
+++ b/Main/Component/UI/Decorate/Tweens/PositionTween.cs
@@ -1,45 +1,45 @@
锘縰sing UnityEngine;
using System.Collections;
- public class PositionTween : TweenEx
+public class PositionTween : TweenEx
+{
+
+ 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;
}
+ base.OnOnceEnd();
- 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;
- }
+ 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
+}
\ No newline at end of file
--
Gitblit v1.8.0