private void PollPlayers()
{
playerPollData.Clear();
if (!OwningNetWorker.IsServer)
return;
ObjectMapper.MapBytes(playerPollData, OwningNetWorker.Players.Count + 1);
// Send the server first
ObjectMapper.MapBytes(playerPollData, OwningNetWorker.Me.NetworkId, OwningNetWorker.Me.Name);
foreach (NetworkingPlayer player in OwningNetWorker.Players)
ObjectMapper.MapBytes(playerPollData, player.NetworkId, player.Name);
Networking.WriteCustom(WriteCustomMapping.NETWORKING_MANAGER_POLL_PLAYERS, OwningNetWorker, playerPollData, OwningNetWorker.CurrentStreamOwner, true);
}