UnityEngine.Networking.NetworkLobbyManager.OnGUI C# (CSharp) Method

OnGUI() private method

private OnGUI ( ) : void
return void
        private void OnGUI()
        {
            if (this.showLobbyGUI && (Application.loadedLevelName == this.m_LobbyScene))
            {
                Rect position = new Rect(90f, 180f, 500f, 150f);
                GUI.Box(position, "Players:");
                if (NetworkClient.active)
                {
                    Rect rect2 = new Rect(100f, 300f, 120f, 20f);
                    if (GUI.Button(rect2, "Add Player"))
                    {
                        this.TryToAddPlayer();
                    }
                }
            }
        }