正在为RScript更新内容(已通过编译)
This commit is contained in:
@@ -33,14 +33,7 @@ namespace Demo.Game
|
||||
/// <param name="time">插值时间</param>
|
||||
/// <param name="value"></param>
|
||||
/// <param name="curveType">可取值为30种缓动曲线</param>
|
||||
[ScriptableCall(@"
|
||||
<summary>
|
||||
新增
|
||||
</summary>
|
||||
<param name=""time"">插值时间</param>
|
||||
<param name=""value""></param>
|
||||
<param name=""curveType"">可取值为30种缓动曲线</param>
|
||||
")]
|
||||
[Convention.RScript.Variable.Attr.Method]
|
||||
public void Add(string time, string value, string curveType)
|
||||
{
|
||||
ManualAddEntry(time, float.Parse(value), Enum.Parse<MathExtension.EaseCurveType>(curveType));
|
||||
@@ -50,12 +43,7 @@ namespace Demo.Game
|
||||
/// 如未加载则加载,然后绑定到样条线
|
||||
/// </summary>
|
||||
/// <param name="path">脚本位置</param>
|
||||
[ScriptableCall(@"
|
||||
<summary>
|
||||
如未加载则加载,然后绑定到样条线
|
||||
</summary>
|
||||
<param name=""path"">脚本位置</param>
|
||||
")]
|
||||
[Convention.RScript.Variable.Attr.Method]
|
||||
public IEnumerator Load(string path)
|
||||
{
|
||||
MySplineCore = FindWithPath(path, false) as SplineCore;
|
||||
|
||||
Reference in New Issue
Block a user