完成Config初步
This commit is contained in:
@@ -38,6 +38,15 @@ namespace Demo.Game
|
||||
[Scriptable]
|
||||
public class SplineAnchor : ScriptableObject, IDependOnSplineCore
|
||||
{
|
||||
/// <summary>
|
||||
/// 加载并绑定到新样条线
|
||||
/// </summary>
|
||||
/// <param name="path">对象路径, 不存在时则立刻加载</param>
|
||||
[Convention.RScript.Variable.Attr.Method]
|
||||
public void LoadSpline(SplineCore core)
|
||||
{
|
||||
MySplineCore = core;
|
||||
}
|
||||
public static SplineAnchor Make()
|
||||
{
|
||||
return new GameObject().AddComponent<SplineAnchor>();
|
||||
|
||||
Reference in New Issue
Block a user