From b9751b2f076ee050fe5b685e91ae4fc4469b1015 Mon Sep 17 00:00:00 2001 From: yyl <yyl> Date: 星期一, 09 六月 2025 09:01:02 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts --- Main/Component/UI/Decorate/Tweens/RotationTween.cs | 59 ++++++++++++++++++++++++++++------------------------------- 1 files changed, 28 insertions(+), 31 deletions(-) diff --git a/Main/Component/UI/Decorate/Tweens/RotationTween.cs b/Main/Component/UI/Decorate/Tweens/RotationTween.cs index c5aa8dd..719bbae 100644 --- a/Main/Component/UI/Decorate/Tweens/RotationTween.cs +++ b/Main/Component/UI/Decorate/Tweens/RotationTween.cs @@ -1,41 +1,38 @@ 锘縰sing UnityEngine; using System.Collections; -namespace vnxbqy.UI + +public class RotationTween : Tween { - public class RotationTween : Tween + public override void SetStartState() + { + base.SetStartState(); + this.transform.localEulerAngles = from; + } + + public override void SetEndState() + { + base.SetEndState(); + this.transform.localEulerAngles = to; + } + + protected override void OnPrepare() + { + base.OnPrepare(); + this.transform.localEulerAngles = reversal ? to : from; + } + + protected override void OnOnceEnd() { - public override void SetStartState() - { - base.SetStartState(); - this.transform.localEulerAngles = from; - } + this.transform.localEulerAngles = reversal ? from : to; + base.OnOnceEnd(); + } - public override void SetEndState() - { - base.SetEndState(); - this.transform.localEulerAngles = to; - } - - protected override void OnPrepare() - { - base.OnPrepare(); - this.transform.localEulerAngles = reversal ? to : from; - } - - protected override void OnOnceEnd() - { - - this.transform.localEulerAngles = reversal ? from : to; - base.OnOnceEnd(); - } - - protected override void UpdateVector3() - { - base.UpdateVector3(); - this.transform.localEulerAngles = CalculateVector3(); - } + protected override void UpdateVector3() + { + base.UpdateVector3(); + this.transform.localEulerAngles = CalculateVector3(); } } -- Gitblit v1.8.0