-
-
Save todorok1/390213f087596e3cb6e2e65355a968da to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第116回 戦闘中のアイテムアクションを処理するクラス
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 ShowItemHealMessage(BattleAction action, string itemName, int healValue) | |
| { | |
| string actorName = _actionProcessor.GetCharacterName(action.actorId, action.isActorFriend); | |
| string targetName = _actionProcessor.GetCharacterName(action.targetId, action.isTargetFriend); | |
| _actionProcessor.SetPauseMessage(true); | |
| _messageWindowController.GenerateUseItemMessage(actorName, itemName); | |
| while (_actionProcessor.IsPausedMessage) | |
| { | |
| yield return null; | |
| } | |
| // 回復の効果音を再生します。 | |
| AudioManager.Instance.PlaySe(SeNames.Heal); | |
| _actionProcessor.SetPauseMessage(true); | |
| _messageWindowController.GenerateHpHealMessage(targetName, healValue); | |
| _battleManager.OnUpdateStatus(); | |
| 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