コード例 #1
0
 public override void OnDisabled()
 {
     base.OnDisabled();
     Exiled.Events.Handlers.Server.RoundStarted -= PLEV.RoundStart;
     PLEV = null;
     inst.UnpatchAll();
     inst     = null;
     instance = null;
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 public PluginEvents(MicroHIDPlugin microHIDPlugin)
 {
     this.plugin = microHIDPlugin;
     //handle = Timing.RunCoroutine(ChargeMicro(), Segment.FixedUpdate);
 }