internal void Main() { Instance = this; Logger = base.Logger; var harmony = Harmony.CreateAndPatchAll(typeof(Hooks)); harmony.Patch(typeof(MPCharCtrl).GetNestedType("IKInfo", AccessTools.all).GetMethod("Init"), null, new HarmonyMethod(typeof(UI).GetMethod(nameof(UI.InitUI), AccessTools.all))); harmony.Patch(typeof(MPCharCtrl).GetNestedType("IKInfo", AccessTools.all).GetMethod("UpdateInfo"), null, new HarmonyMethod(typeof(UI).GetMethod(nameof(UI.UpdateUI), AccessTools.all))); }
internal void Main() { Instance = this; Logger = base.Logger; Harmony.CreateAndPatchAll(typeof(Hooks)); }