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

OnGUI() private method

private OnGUI ( ) : void
return void
        private void OnGUI()
        {
            if (this.ShowLobbyGUI)
            {
                NetworkLobbyManager singleton = NetworkManager.singleton as NetworkLobbyManager;
                if ((singleton == null) || (singleton.showLobbyGUI && (SceneManager.GetSceneAt(0).name == singleton.lobbyScene)))
                {
                    Rect position = new Rect((float) (100 + (this.m_Slot * 100)), 200f, 90f, 20f);
                    if (base.isLocalPlayer)
                    {
                        string str2;
                        if (this.m_ReadyToBegin)
                        {
                            str2 = "(Ready)";
                        }
                        else
                        {
                            str2 = "(Not Ready)";
                        }
                        GUI.Label(position, str2);
                        if (this.m_ReadyToBegin)
                        {
                            position.y += 25f;
                            if (GUI.Button(position, "STOP"))
                            {
                                this.SendNotReadyToBeginMessage();
                            }
                        }
                        else
                        {
                            position.y += 25f;
                            if (GUI.Button(position, "START"))
                            {
                                this.SendReadyToBeginMessage();
                            }
                            position.y += 25f;
                            if (GUI.Button(position, "Remove"))
                            {
                                ClientScene.RemovePlayer(base.GetComponent<NetworkIdentity>().playerControllerId);
                            }
                        }
                    }
                    else
                    {
                        GUI.Label(position, "Player [" + base.netId + "]");
                        position.y += 25f;
                        GUI.Label(position, "Ready [" + this.m_ReadyToBegin + "]");
                    }
                }
            }
        }