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

Update() public method

public Update ( ) : void
return void
        public void Update()
        {
            if ((NetworkClient.active || NetworkServer.active) && Input.GetKeyUp(KeyCode.Escape)) {
                this.showGUI = !this.showGUI;
            }

            if (!showGUI)
                return;

            if (!NetworkClient.active && !NetworkServer.active && manager.matchMaker == null) {
                if (Input.GetKeyDown(KeyCode.S)) {
                    this.showGUI = false;
                    manager.StartServer();
                }
                if (Input.GetKeyDown(KeyCode.H)) {
                    this.showGUI = false;
                    manager.StartHost();
                }
                if (Input.GetKeyDown(KeyCode.C)) {
                    manager.StartClient();
                }
            }
            if (NetworkServer.active && NetworkClient.active) {
                if (Input.GetKeyDown(KeyCode.K)) {
                    manager.StopHost();
                    this.showGUI = true;
                }
            }
        }
CustomNetworkManagerHUD