Ejemplo n.º 1
0
 public override void OnLobbyList(uint count, LobbyListResult result)
 {
     if (result == LobbyListResult.LOBBY_LIST_RESULT_SUCCESS)
     {
         LobbyListRetrieved(count);
     }
     else
     {
         Debug.LogWarning("OnLobbyList failure reason: " + result);
     }
 }
Ejemplo n.º 2
0
 public override void OnLobbyList(uint count, LobbyListResult result)
 {
     if (result != LobbyListResult.LOBBY_LIST_RESULT_SUCCESS)
     {
         Debug.LogWarning("OnLobbyList failure reason: " + result);
         return;
     }
     Debug.Log(count + " lobbies OnLobbyList");
     matchmaking.lobbyCount = count;
     if (count == 0)
     {
         GameObject.Find("OnlineBrowserScreen").GetComponent <OnlineBrowserController>().DisplayLobbyList(null);
         return;
     }
     for (uint i = 0; i < count; i++)
     {
         GalaxyID lobbyID = GalaxyInstance.Matchmaking().GetLobbyByIndex(i);
         Debug.Log("Requesting lobby data for lobby " + i + " with lobbyID " + lobbyID.ToString());
         matchmaking.RequestLobbyData(lobbyID);
     }
 }