Exemplo n.º 1
0
        //
        // Change from Menu screen to Lobby screen
        //
        public void ChangeToLobbyScreen(bool hosting)
        {
            statusBar.Text = "Lobby";
            statusBar.Color = StatusBar.LobbyColor;
            activeScreen = Screen.Lobby;

            if (hosting) {
                listener = new Listener();
                listener.Start();
            }

            client = new Client(this);
            lobbyScreen.SetClient(client);
        }
Exemplo n.º 2
0
        public void SetClient(Client client)
        {
            this.client = client;

            //if (mgr.MenuScreen.IsHost)
                //showStartButton = true;
        }