private void CollectPatches()
 {
     if (HarmonyHelper.CollectPatches(harmonyInstance, infos))
     {
         IsActive = true;
     }
 }
 protected override bool OnDisablePatch()
 {
     CollectPatches();
     HarmonyHelper.UpdatePatchesState(harmonyInstance, infos, false);
     return(true);
 }
 protected override bool OnDisablePatch()
 {
     HarmonyHelper.UpdatePatchesState(instance, infos, false);
     // instance.UnpatchAll();
     return(true);
 }
 protected override bool OnEnablePatch()
 {
     HarmonyHelper.UpdatePatchesState(harmonyInstance, infos, true);
     return(true);
 }
 protected override bool OnEnablePatch()
 {
     proc.Patch();
     HarmonyHelper.CollectPatches(instance, infos);
     return(true);
 }