示例#1
0
 public override void OnDisabled()
 {
     UnregisterEvents();
     HarmonyInstance.UnpatchAll(HarmonyInstance.Id);
     Instance = null;
     base.OnDisabled();
 }
示例#2
0
 public override void OnEnabled()
 {
     Instance = this;
     RegisterEvents();
     HarmonyInstance = new Harmony($"steven4547466.antiLag-{DateTime.UtcNow.Ticks}");
     HarmonyInstance.PatchAll();
     base.OnEnabled();
 }