-
-
Save todorok1/d8cb3af7295ff24131b4a5b9ba2d5e63 to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第54回 戦闘に関する機能を管理するクラス
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 OnEnemyCommandSelected() | |
{ | |
SimpleLogger.Instance.Log("敵味方の行動が決まったので実際に行動させます。"); | |
} | |
/// <summary> | |
/// ステータスの値が更新された時のコールバックです。 | |
/// </summary> | |
public void OnUpdateStatus() | |
{ | |
_battleWindowManager.GetStatusWindowController().UpdateAllCharacterStatus(); | |
} | |
/// <summary> | |
/// 敵を全て倒した時のコールバックです。 | |
/// </summary> | |
public void OnEnemyDefeated() | |
{ | |
SimpleLogger.Instance.Log("敵を全て倒しました。"); | |
BattlePhase = BattlePhase.Result; | |
IsBattleFinished = true; | |
} | |
/// <summary> | |
/// ゲームオーバーになった時のコールバックです。 | |
/// </summary> | |
public void OnGameover() | |
{ | |
SimpleLogger.Instance.Log("ゲームオーバーになりました。"); | |
BattlePhase = BattlePhase.Result; | |
IsBattleFinished = true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment