Пример #1
0
 public void RegisterEvents()
 {
     PPlayer.Hurting         += player.OnHurting;
     PPlayer.InteractingDoor += player.OnInteract;
     PPlayer.Spawning        += player.OnSpawning;
     PServer.RoundEnded      += server.OnRoundEnded;
     PServer.RoundStarted    += server.OnRoundStarted;
     Singleton = this;
 }
Пример #2
0
 public void UnregisterEvents()
 {
     PPlayer.Hurting         -= player.OnHurting;
     PPlayer.InteractingDoor -= player.OnInteract;
     PPlayer.Spawning        -= player.OnSpawning;
     PServer.RoundEnded      -= server.OnRoundEnded;
     PServer.RoundStarted    -= server.OnRoundStarted;
     Singleton = null;
     player    = null;
     server    = null;
 }