public override void OnDisabled() { base.OnDisabled(); Exiled.Events.Handlers.Server.RoundStarted -= PLEV.RoundStart; PLEV = null; inst.UnpatchAll(); inst = null; instance = null; }
public override void OnEnabled() { base.OnEnabled(); instance = this; PLEV = new PluginEvents(this); Exiled.Events.Handlers.Server.RoundStarted += PLEV.RoundStart; inst = new Harmony("virtualbrightplayz.mhidext"); inst.PatchAll(); }
public PluginEvents(MicroHIDPlugin microHIDPlugin) { this.plugin = microHIDPlugin; //handle = Timing.RunCoroutine(ChargeMicro(), Segment.FixedUpdate); }