protected override void OnEndMission() { base.OnEndMission(); if (!GameNetwork.IsServer) { return; } foreach (NetworkCommunicator networkPeer in GameNetwork.NetworkPeers) { VirtualPlayer virtualPlayer = networkPeer.VirtualPlayer; TeamDeathmatchMissionRepresentative component = virtualPlayer.GetComponent <TeamDeathmatchMissionRepresentative>(); if (component != null) { virtualPlayer.RemoveComponent((PeerComponent)component); } } }