using System; using System.Collections; using System.Collections.Generic; using Convention; using Convention.WindowsUI.Variant; using UnityEngine; namespace Demo.Game { 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 /// 可取值为30种缓动曲线 [ScriptableCall(@" 新增 插值时间 x y z 可取值为30种缓动曲线 ")] public void Add(string time, string x, string y, string z, string curveType) { ManualAddEntry(time, new(float.Parse(x), float.Parse(y), float.Parse(z)), Enum.Parse(curveType)); } } }