-
-
Save todorok1/12412e0a3b8460e4de2a455ad9d8bcf9 to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第53回 戦闘に関する機能を管理するクラス
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> | |
| public void OnFinishedShowMessage() | |
| { | |
| switch (BattlePhase) | |
| { | |
| case BattlePhase.ShowEnemy: | |
| SimpleLogger.Instance.Log("敵の表示が完了しました。"); | |
| StartInputCommandPhase(); | |
| break; | |
| case BattlePhase.Action: | |
| _battleActionProcessor.ShowNextMessage(); | |
| break; | |
| } | |
| } | |
| /// <summary> | |
| /// ターン内の行動が完了した時のコールバックです。 | |
| /// </summary> | |
| public void OnFinishedActions() | |
| { | |
| if (IsBattleFinished) | |
| { | |
| SimpleLogger.Instance.Log("OnFinishedActions() || 戦闘が終了しているため、処理を中断します。"); | |
| return; | |
| } | |
| SimpleLogger.Instance.Log("ターン内の行動が完了しました。"); | |
| TurnCount++; | |
| StartInputCommandPhase(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment