yyl
2025-06-13 eb1efcaa9be0e2340fc49b38dab8df18e36526c9
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 : 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()
    {
 
        this.transform.localEulerAngles = reversal ? from : to;
        base.OnOnceEnd();
    }
 
    protected override void UpdateVector3()
    {
        base.UpdateVector3();
        this.transform.localEulerAngles = CalculateVector3();
    }
}