using System;
using System.Collections;
using Convention;
using UnityEngine;
namespace Demo.Game
{
///
/// 天然被动跟随
///
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;
}
}
}