Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created March 27, 2025 10:07
Show Gist options
  • Select an option

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

Select an option

Save todorok1/f3818a8a8c3ce08a532bfaef1cb4c9a7 to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第58回 戦闘中のアクションを処理するクラス
/// <summary>
/// このクラスを初期化します。
/// </summary>
/// <param name="battleManager">戦闘に関する機能を管理するクラスへの参照</param>
public void InitializeProcessor(BattleManager battleManager)
{
_battleManager = battleManager;
_enemyStatusManager = _battleManager.GetEnemyStatusManager();
_battleActionProcessorAttack.SetReferences(_battleManager, this);
_battleActionProcessorMagic.SetReferences(_battleManager, this);
_battleActionProcessorItem.SetReferences(_battleManager, this);
_battleActionProcessorRun.SetReferences(_battleManager, this);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment