Currently connected players.
// Requests info from the master server and prints
// the number of players playing on each host
function Start() {
var hostData : HostData[] = MasterServer.PollHostList();
for(var element : HostData in hostData) {
Debug.Log(element.connectedPlayers + " are connected to " + element.gameName);
}
}
no example available in C#
Did you find this page useful? Please give it a rating: