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; }
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; }