UnityEngine.Networking.NetworkManagerHUD.Update C# (CSharp) Method

Update() private method

private Update ( ) : void
return void
        private void Update()
        {
            if (this.showGUI)
            {
                if ((!this.manager.IsClientConnected() && !NetworkServer.active) && (this.manager.matchMaker == null))
                {
                    if (Application.platform != RuntimePlatform.WebGLPlayer)
                    {
                        if (Input.GetKeyDown(KeyCode.S))
                        {
                            this.manager.StartServer();
                        }
                        if (Input.GetKeyDown(KeyCode.H))
                        {
                            this.manager.StartHost();
                        }
                    }
                    if (Input.GetKeyDown(KeyCode.C))
                    {
                        this.manager.StartClient();
                    }
                }
                if ((NetworkServer.active && this.manager.IsClientConnected()) && Input.GetKeyDown(KeyCode.X))
                {
                    this.manager.StopHost();
                }
            }
        }
    }
NetworkManagerHUD