示例#1
0
文件: Hotfix.cs 项目: 542767059/ABC
        public static void Inject()
        {
            if (UnityEngine.Application.isPlaying)
            {
                return;
            }

            try
            {
                HotfixInject("./Library/ScriptAssemblies/Assembly-CSharp.dll", () => { return(new HashSet <string>(GenAutoExport.FixMarkIL())); });
            }
            catch (System.Exception ex)
            {
                UnityEngine.Debug.LogException(ex);
            }
        }
示例#2
0
 /// <summary>
 /// 注册需要热更的类
 /// </summary>
 static void Gen()
 {
     AutoCode(GenAutoExport.FixMarkIL());
 }