From 553aae863528213ec76c6bad1fd78febdce36360 Mon Sep 17 00:00:00 2001 From: tanghai Date: Wed, 3 Jan 2018 14:53:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=AA=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E5=88=86=E5=8F=91=E5=88=B0IL=E5=B1=82=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Unity/Assets/Scripts/Component/MessageDispatherComponent.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Unity/Assets/Scripts/Component/MessageDispatherComponent.cs b/Unity/Assets/Scripts/Component/MessageDispatherComponent.cs index 9ecce7e9..5b2aca8a 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); -- GitLab