2025-09-25 19:04:05 +08:00
|
|
|
using Convention;
|
|
|
|
|
using Convention.WindowsUI.Variant;
|
2025-12-12 15:19:10 +08:00
|
|
|
using Demo.Attr;
|
2025-09-25 19:04:05 +08:00
|
|
|
using Dreamteck.Splines;
|
2025-12-12 15:19:10 +08:00
|
|
|
using System.Collections;
|
2025-09-25 19:04:05 +08:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace Demo.Game
|
|
|
|
|
{
|
2025-12-12 15:19:10 +08:00
|
|
|
[Scriptable]
|
2025-09-25 19:04:05 +08:00
|
|
|
public class SplineMovement : BasicSplineJustFollow
|
|
|
|
|
{
|
|
|
|
|
public static SplineMovement Make()
|
|
|
|
|
{
|
|
|
|
|
return new GameObject().AddComponent<SplineMovement>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void UpdateData(float data)
|
|
|
|
|
{
|
|
|
|
|
UpdateTarget.transform.position = MySplineCore.MySplineComputer.EvaluatePosition(data);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|