diff --git a/Unity/Assets/Scripts/Component/MessageDispatherComponent.cs b/Unity/Assets/Scripts/Component/MessageDispatherComponent.cs index 9ecce7e9cf282a6a68cdcd5d49314750c1b32562..5b2aca8a7ffc8254332e2088108d100d5cff1d33 100644 --- a/Unity/Assets/Scripts/Component/MessageDispatherComponent.cs +++ b/Unity/Assets/Scripts/Component/MessageDispatherComponent.cs @@ -40,7 +40,7 @@ namespace Model { appDomain = Init.Instance.AppDomain; this.instance = this.appDomain.Instantiate(type.FullName); - this.method = this.instance.Type.GetMethod(methodName); + this.method = this.instance.Type.GetMethod(methodName, 2); int n = this.method.ParameterCount; this.param = new object[n]; } @@ -113,7 +113,7 @@ namespace Model } MessageHandlerAttribute messageHandlerAttribute = (MessageHandlerAttribute)attrs[0]; #if ILRuntime - IMessageMethod iMessageMethod = new IMessageILMethod(type, "Run"); + IMessageMethod iMessageMethod = new IMessageILMethod(type, "Handle"); #else IMHandler iMHandler = (IMHandler)Activator.CreateInstance(type); IMessageMethod iMessageMethod = new IMessageMonoMethod(iMHandler);