yyl
2025-06-09 b9751b2f076ee050fe5b685e91ae4fc4469b1015
Main/Component/UI/Decorate/Tweens/RotationTween.cs
@@ -1,41 +1,38 @@
using 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();
    }
}