推动Config新增
This commit is contained in:
@@ -10,6 +10,7 @@ namespace Demo.Game
|
||||
// IJudgementHookObject 配置(抽象基类Config)
|
||||
public class IJudgementHookObjectConfig : ScriptLoadableConfig
|
||||
{
|
||||
public int MyInteractionModule;
|
||||
public override void Deserialize(BinaryReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
@@ -51,11 +52,10 @@ namespace Demo.Game
|
||||
/// <summary>
|
||||
/// 绑定IInteraction对象,若不手动绑定则会自动绑定到父物体的IInteraction
|
||||
/// </summary>
|
||||
/// <param name="path"></param>
|
||||
[Convention.RScript.Variable.Attr.Method]
|
||||
public void Bind(string path)
|
||||
public void Bind(IInteraction module)
|
||||
{
|
||||
MyInteractionModule = FindWithPath(path) as IInteraction;
|
||||
MyInteractionModule = module;
|
||||
}
|
||||
|
||||
public override IEnumerator UnloadScript()
|
||||
|
||||
Reference in New Issue
Block a user