public override void OnDisabled() { ServerEvents.WaitingForPlayers -= _serverHandlers.OnWaitingForPlayers; ServerEvents.RoundStarted -= _serverHandlers.OnRoundStart; ServerEvents.RoundEnded -= _serverHandlers.OnRoundEnded; Instance = null; base.OnDisabled(); }
public override void OnEnabled() { Instance = this; ServerEvents.WaitingForPlayers += _serverHandlers.OnWaitingForPlayers; ServerEvents.RoundStarted += _serverHandlers.OnRoundStart; ServerEvents.RoundEnded += _serverHandlers.OnRoundEnded; base.OnEnabled(); }