1.基类已更新2.Spline更新3.ApplyLoad存在问题

This commit is contained in:
2025-11-12 16:12:01 +08:00
parent a0bc10df4a
commit 06689b5cee
3 changed files with 19 additions and 6 deletions

View File

@@ -73,9 +73,9 @@ namespace Demo.Game
/// <param name="to"></param>
/// <param name="curveType">可取值为30种缓动曲线</param>
[Convention.RScript.Variable.Attr.Method]
public void Add(string time, string from, string to, string curveType)
public void Add(string time, float from, float to, string curveType)
{
ManualAddEntry(time, new(float.Parse(from), float.Parse(to)), Enum.Parse<MathExtension.EaseCurveType>(curveType));
ManualAddEntry(time, new(from, to), Enum.Parse<MathExtension.EaseCurveType>(curveType));
}
[Convention.RScript.Variable.Attr.Method]
@@ -85,6 +85,12 @@ namespace Demo.Game
}
[Convention.RScript.Variable.Attr.Method]
public void LoadSpline(SplineCore spline)
{
this.MySplineCore = spline;
}
/// <summary>
/// 加载对应ab包并加载指定材质
/// </summary>