using Convention; using Demo.Attr; using System; using System.Collections; using UnityEngine; namespace Demo.Game { /// /// 天然被动跟随 /// [Scriptable] public class SplineRotation : BasicSplineJustFollow { public static SplineRotation Make() { return new GameObject().AddComponent(); } protected override void UpdateData(float data) { UpdateTarget.transform.rotation = MySplineCore.MySplineComputer.Evaluate(data).rotation; } } }