Эх сурвалжийг харах

修复ReferenceConllector方法名Get和Get<>在ILRuntime中运行冲突导致异常,重现方法:1.Hotfix工程调用Get(string key) 2.生产Binding代码By分析 3.运行异常System.Reflection.AmbiguousMatchException: Ambiguous match found.(at System.DefaultBinder.SelectMethod) (#84)

DukeChiang 7 жил өмнө
parent
commit
8f22f99176

+ 1 - 1
Unity/Assets/Scripts/Other/ReferenceCollector.cs

@@ -109,7 +109,7 @@ public class ReferenceCollector: MonoBehaviour, ISerializationCallbackReceiver
 		return dictGo as T;
 	}
 
-	public Object Get(string key)
+	public Object GetObject(string key)
 	{
 		Object dictGo;
 		if (!dict.TryGetValue(key, out dictGo))