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