Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 注册需要热更的类
 /// </summary>
 static void Gen()
 {
     AutoCode(GenAutoExport.FixMarkIL());
 }