protected override void OnDestroy() { Instance?.Unsubscribe(nameof(Instance.CanNetworkTo)); Facepunch.Pool.FreeList(ref remainingSlashers); EventPlayers.Clear(); base.OnDestroy(); }
protected override void StartEvent() { base.StartEvent(); Instance.Subscribe(nameof(Instance.CanNetworkTo)); rounds = eventPlayers.Count; remainingSlashers.AddRange(eventPlayers); EventPlayers.Clear(); EventPlayers.AddRange(eventPlayers.Select((EventManager.BaseEventPlayer eventPlayer) => eventPlayer.Player)); StartRound(); }