Ejemplo n.º 1
0
    // Fraphics Render
    void OnGUI()
    {
        // TODO Change positions
        if (GUI.Button(new Rect(30, Screen.height / 8 + 10, Screen.width / 3, Screen.height / 8), "Refresh Hosts"))
        {
            ClientMenager.RefreshHostList();
        }

        serverListGUI();
    }
Ejemplo n.º 2
0
 void serverListGUI()
 {
     if (hostList != null)
     {
         for (int i = 0; i < hostList.Length; i++)
         {
             // TODO Change positions
             if (GUI.Button(new Rect(30, Screen.height / 4 + 20 + ((Screen.height / 8 + 10) * i), Screen.width / 3, Screen.height / 8), hostList[i].gameName))
             {
                 ClientMenager.JoinServer(hostList[i]);
             }
         }
     }
 }