internal void Send(QueuedMessage send) { if (clients.Count == 0) { return; } Client[] clientsTo = send.sendTo; if (clientsTo == null || clientsTo.Count() == 0) { clientsTo = new Client[] { clients[0] } } ; send.sendTo = clientsTo; string payload = GetPayload(send); foreach (Client client in clientsTo) { if (send.SendReliable) { NetworkChannel.SetReliable(); } else { NetworkChannel.SetUnreliable(); } NetworkChannel.Send(client, payload); } }