-
-
Save todorok1/a1a246d8bb59289009bb6027bd2dd9ae to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第62回 戦闘に関する機能を管理するクラス
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 OnFinishBattle() | |
| { | |
| SimpleLogger.Instance.Log("戦闘に勝利して終了します。"); | |
| _battleWindowManager.HideAllWindow(); | |
| _battleSpriteController.HideBackground(); | |
| _battleSpriteController.HideEnemy(); | |
| _enemyStatusManager.InitializeEnemyStatusList(); | |
| _battleActionProcessor.InitializeActions(); | |
| _battleActionProcessor.StopActions(); | |
| BattlePhase = BattlePhase.NotInBattle; | |
| _postBattle.OnFinishedBattle(); | |
| } | |
| /// <summary> | |
| /// 戦闘を終了する時のコールバックです。 | |
| /// </summary> | |
| public void OnFinishBattleWithGameover() | |
| { | |
| SimpleLogger.Instance.Log("ゲームオーバーとして戦闘を終了します。"); | |
| _battleWindowManager.HideAllWindow(); | |
| _battleSpriteController.HideBackground(); | |
| _battleSpriteController.HideEnemy(); | |
| _enemyStatusManager.InitializeEnemyStatusList(); | |
| _battleActionProcessor.InitializeActions(); | |
| _battleActionProcessor.StopActions(); | |
| BattlePhase = BattlePhase.NotInBattle; | |
| _postBattle.OnLostBattle(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment