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