in GameLiftExampleUnityProject/Assets/Scripts/Server/Server.cs [340:360]
public void TransmitMessage(SimpleMessage msg, int excludeClient)
{
// send the same message to all players
foreach (var client in this.clients)
{
//Skip if this is the excluded client
if (client.Value == excludeClient)
{
continue;
}
try
{
NetworkProtocol.Send(client.Key, msg);
}
catch (Exception e)
{
this.clientsToRemove.Add(client.Key);
}
}
}