-
-
Save todorok1/7c3379df641fb3e2d3231a22eaed7d3f to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第119回 戦闘中のアイテムアクションを処理するクラス
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 ShowNoEffectItemMessage(BattleAction action, string itemName) | |
| { | |
| string actorName = _actionProcessor.GetCharacterName(action.actorId, action.isActorFriend); | |
| _actionProcessor.SetPauseMessage(true); | |
| _messageWindowController.GenerateUseItemMessage(actorName, itemName); | |
| while (_actionProcessor.IsPausedMessage) | |
| { | |
| yield return null; | |
| } | |
| _actionProcessor.SetPauseMessage(true); | |
| _messageWindowController.GenerateNoEffectMessage(); | |
| while (_actionProcessor.IsPausedMessage) | |
| { | |
| yield return null; | |
| } | |
| _actionProcessor.SetPauseProcess(false); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment