Advertisement
Guest User

Untitled

a guest
Aug 28th, 2014
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     if(LoadHostedGames == 1) {
  2.         GUILayout.BeginArea(Rect(0,50, 200, 200));
  3.         GameListscrollPosition = GUILayout.BeginScrollView (
  4.             GameListscrollPosition, GUILayout.Width (200), GUILayout.Height (100));
  5.  
  6.             if (MasterServer.PollHostList().Length != 0) {
  7.                 var hostData: HostData[] = MasterServer.PollHostList();
  8.                 for (var i : int = 0; i+1 <= hostData.Length; i++) {
  9.                     GUILayout.Label (hostData[i].gameName);
  10.                     Debug.Log("Game name: " + hostData[i].gameName);
  11.                 }
  12.                 MasterServer.ClearHostList();
  13.             }
  14.         LoadHostedGames = 0;
  15.         //Debug.Log("Loading hosted games...");
  16.         GUILayout.EndScrollView ();
  17.         GUILayout.EndArea();   
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement