-
-
Save todorok1/f69d40ec9043c852437989ad11ea0556 to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第117回 メッセージに関するイベントを処理するクラス
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <summary> | |
| /// メッセージを表示します。 | |
| /// </summary> | |
| IEnumerator ShowMessageProcess() | |
| { | |
| _messageWindowController.SetUpController(this); | |
| _messageWindowController.ShowPager(); | |
| _messageWindowController.ShowWindow(); | |
| foreach (var message in _messages) | |
| { | |
| _messageWindowController.ShowGeneralMessage(message, 0f); | |
| // キー入力を待ちます。 | |
| _messageWindowController.StartKeyWait(); | |
| while (_messageWindowController.IsWaitingKeyInput) | |
| { | |
| yield return null; | |
| } | |
| // 選択時の効果音を再生します。 | |
| AudioManager.Instance.PlaySe(SeNames.OK); | |
| } | |
| if (!_keepWindowOpen) | |
| { | |
| _messageWindowController.HideWindow(); | |
| _messageWindowController.HidePager(); | |
| } | |
| CallNextProcess(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment