Example #1
0
 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));
     }
 }
Example #2
0
 protected override void OnSubModuleUnloaded()
 {
     Instance = null;
 }