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