protected override void OnSubModuleLoad() { base.OnSubModuleLoad(); try { Instance = this; var harmony = new Harmony("BannerPaste stuff"); harmony.PatchAll(); } catch (Exception ex) { DelayMessage("BannerPaste encountered an error while initializing, details copied to clipboard.", Color.FromUint(0xffff0000)); Input.SetClipboardText(FormatException(ex)); } }
protected override void OnSubModuleUnloaded() { Instance = null; }