public void UnregisterEvents() { player = new Handlers.Player(); GPlayer.Died -= player.killing; player = null; }
public void registerEvents() { player = new Handlers.Player(); server = new Handlers.Server(); GServer.WaitingForPlayers += server.WaitingForPlayers; GServer.RoundStarted += server.RoundStarted; GServer.RespawningTeam += server.CassieSpawnMgr; GServer.EndingRound += server.OnRoundEnd; GServer.SendingRemoteAdminCommand += commands.Commands; GPlayer.Left += player.OnLeft; GPlayer.Joined += player.OnJoin; GPlayer.Escaping += player.OnEscaping; GPlayer.ChangingRole += player.onRoleChange; }
public void registerEvents() { player = new Handlers.Player(); GPlayer.Died += player.killing; }