using Convention; using Convention.WindowsUI.Variant; using Demo.Attr; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Demo.Game { [Scriptable] public class TickMovement : Updatement { public static TickMovement Make() { return new GameObject().AddComponent(); } protected override Vector3 Lerp(Vector3 begin, Vector3 end, float t) { return Vector3.Lerp(begin, end, t); } protected override void UpdateData(Vector3 data) { UpdateTarget.transform.localPosition = data; } /// /// 新增 /// /// 插值时间 /// x /// y /// z /// 缓动曲线 [Convention.RScript.Variable.Attr.Method] public void Add(float time, float x, float y, float z, MathExtension.EaseCurveType curveType) { ManualAddEntry(time, new(x, y, z), curveType); } } }