using UnityEngine;
namespace Demo.Game
{
///
/// 天然被动跟随
///
public class SplineScaling : BasicSplineJustFollow
{
public static SplineScaling Make()
{
return new GameObject().AddComponent();
}
protected override void UpdateData(float data)
{
UpdateTarget.transform.localScale = Vector3.one * MySplineCore.MySplineComputer.Evaluate(data).size;
}
}
}