Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created August 14, 2025 04:28
Show Gist options
  • Select an option

  • Save todorok1/40db9950228507d519481f30c014ddac to your computer and use it in GitHub Desktop.

Select an option

Save todorok1/40db9950228507d519481f30c014ddac to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第118回 お店画面全体を管理するクラス
/// <summary>
/// 退店時のメッセージを表示します。
/// </summary>
IEnumerator WaitExitMessage()
{
yield return null;
string message = $"またおいで!";
string fullMessage = GetFullMessage(message);
_mapMessageWindowController.ShowWindow();
_mapMessageWindowController.ShowPager();
_mapMessageWindowController.ShowGeneralMessage(fullMessage, 0.5f);
_mapMessageWindowController.StartKeyWait();
while (_mapMessageWindowController.IsWaitingKeyInput)
{
yield return null;
}
// 選択時の効果音を再生します。
AudioManager.Instance.PlaySe(SeNames.OK);
_mapMessageWindowController.HidePager();
_mapMessageWindowController.HideWindow();
ExitProcess();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment