// // 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); }
public void SetClient(Client client) { this.client = client; //if (mgr.MenuScreen.IsHost) //showStartButton = true; }