Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(LoadHostedGames == 1) {
- GUILayout.BeginArea(Rect(0,50, 200, 200));
- GameListscrollPosition = GUILayout.BeginScrollView (
- GameListscrollPosition, GUILayout.Width (200), GUILayout.Height (100));
- if (MasterServer.PollHostList().Length != 0) {
- var hostData: HostData[] = MasterServer.PollHostList();
- for (var i : int = 0; i+1 <= hostData.Length; i++) {
- GUILayout.Label (hostData[i].gameName);
- Debug.Log("Game name: " + hostData[i].gameName);
- }
- MasterServer.ClearHostList();
- }
- LoadHostedGames = 0;
- //Debug.Log("Loading hosted games...");
- GUILayout.EndScrollView ();
- GUILayout.EndArea();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement