-
-
Save todorok1/fef900161113bf41639104a5ef83c8d0 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> | |
| public void OnFinishedBattle() | |
| { | |
| // キャラクターが移動できるようにします。 | |
| _characterMoverManager.ResumeCharacterMover(); | |
| GameStateManager.ChangeToMoving(); | |
| // 現在のマップIDを取得します。 | |
| var mapManager = FindAnyObjectByType<MapManager>(); | |
| if (mapManager != null) | |
| { | |
| // BGMを続きから再生します。 | |
| int mapId = mapManager.GetCurrentMapController().MapId; | |
| string bgmName = MapDataManager.GetMapBgmName(mapId); | |
| AudioManager.Instance.PlayBgm(bgmName, true, true); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment