Exemplo n.º 1
0
        public void Unity2Hotfix(GameObject go, Type t)
        {
#if ILRuntime
            IType   classType        = appDomain.GetType(t.FullName);
            IType[] genericArguments = new IType[] { classType };
            Debug.LogWarning("替换Unity域脚本为热更域脚本" + t);
            appDomain.InvokeGenericMethod("ETHotfix.Init", "Unity2Hotfix", genericArguments, null, go);
#endif
        }