Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created March 25, 2025 08:38
Show Gist options
  • Select an option

  • Save todorok1/43b4ca2c09d8c8d84bafa2d133e6f438 to your computer and use it in GitHub Desktop.

Select an option

Save todorok1/43b4ca2c09d8c8d84bafa2d133e6f438 to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第52回 戦闘に関する機能を管理するクラス
/// <summary>
/// 戦闘の開始処理を行います。
/// </summary>
public void StartBattle()
{
SimpleLogger.Instance.Log("戦闘を開始します。");
GameStateManager.ChangeToBattle();
SetBattlePhase(BattlePhase.ShowEnemy);
_battleWindowManager.SetUpWindowControllers(this);
var messageWindowController = _battleWindowManager.GetMessageWindowController();
messageWindowController.HidePager();
_enemyCommandSelector.SetReferences(this, _battleActionRegister);
_characterMoverManager.StopCharacterMover();
_battleStarter.StartBattle(this);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment