yyl
2025-08-25 cec8b67d82c2c2c1662d55c818c4a46bcc0487db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using UnityEngine;
using System.Collections;
 
 
public class RotationTween : TweenEx
{
 
    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()
    {
 
        this.transform.localEulerAngles = reversal ? from : to;
        base.OnOnceEnd();
    }
 
    protected override void UpdateVector3()
    {
        base.UpdateVector3();
        this.transform.localEulerAngles = CalculateVector3();
    }
}