using System; using UnityEngine; namespace Tweening { public sealed class TransformRotationTweenerTrack : TweenerTrack { public override void UpdateComponentValue(float evaluatedTime) { this._component.localEulerAngles = Vector3.LerpUnclamped(this._from, this._to, evaluatedTime); } public override void ResetComponentValue() { if (this._dynamicFrom) { this._from = this._component.localEulerAngles; } else { this._component.localEulerAngles = this._from; } } public override void InitializeComponentValue() { if (this._dynamicFrom) { this._from = this._component.localEulerAngles; } else { this._component.localEulerAngles = this._from; } } } }