private void HandleResize(object sender, EventArgs e) { HideScreens(); switch (game.Stage) { case GameStage.NotStarted: startControl.Show(); break; case GameStage.ChoiceCharacter: choiceControl.Show(); break; case GameStage.Play: playControl.Show(); break; case GameStage.ActivatedDialogue: playControl.Show(); dialogueControl.Show(); break; case GameStage.Finished: finishedControl.Show(); break; } }
private void ShowFinishedScreen() { HideScreens(); Controls.Remove(finishedControl); finishedControl = new FinishedControl(); Controls.Add(finishedControl); finishedControl.Configure(game); finishedControl.Show(); }