コード例 #1
0
        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;
            }
        }
コード例 #2
0
 private void ShowFinishedScreen()
 {
     HideScreens();
     Controls.Remove(finishedControl);
     finishedControl = new FinishedControl();
     Controls.Add(finishedControl);
     finishedControl.Configure(game);
     finishedControl.Show();
 }