Exemple #1
0
 private void RefreshLobby(object cookie)
 {
     if (!didJoinGame)
     {
         Service.WebRequests.GetGamesList((response) =>
         {
             Debug.Log("Lobby data refreshed");
             LobbyData lobbyData = JsonUtility.FromJson <LobbyData>(response);
             mainMenuScreen.RefreshLobbyContent(lobbyData);
             Service.TimerManager.CreateTimer(REFRESH_TIME, RefreshLobby, null);
         });
     }
 }