Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created July 23, 2025 05:35
Show Gist options
  • Select an option

  • Save todorok1/9b541887280ad373774df6bdf4517a49 to your computer and use it in GitHub Desktop.

Select an option

Save todorok1/9b541887280ad373774df6bdf4517a49 to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第112回 タイトル画面のメニューを管理するクラス
/// <summary>
/// 選択されたメニューに応じた処理を呼び出します。
/// </summary>
void HandleMenu()
{
switch (SelectedMenu)
{
case TitleCommand.Start:
_titleStartController.StartNewGame();
break;
case TitleCommand.Continue:
_titleContinueController.SetUpController(this);
_titleContinueController.ShowWindow();
break;
case TitleCommand.Quit:
_titleQuitGameController.QuitGame();
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment