using UnityEngine;
|
using System.Collections;
|
|
namespace Snxxz.UI
|
{
|
[XLua.CSharpCallLua]
|
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();
|
}
|
}
|
}
|