Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created March 26, 2025 06:15
Show Gist options
  • Select an option

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

Select an option

Save todorok1/5a2455c4cd76295bfc9c94f0b2f0fdd0 to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第53回 行動処理の全体を管理するクラス
/// <summary>
/// 戦闘中のアクション間の実行間隔です。
/// </summary>
[SerializeField]
float _actionInterval = 0.5f;
/// <summary>
/// 戦闘に関する機能を管理するクラスへの参照です。
/// </summary>
BattleManager _battleManager;
/// <summary>
/// 戦闘中の敵キャラクターの管理を行うクラスへの参照です。
/// </summary>
EnemyStatusManager _enemyStatusManager;
/// <summary>
/// ターン内のアクションのリストです。
/// </summary>
List<BattleAction> _actions = new();
/// <summary>
/// アクションを処理するコルーチンへの参照です。
/// </summary>
Coroutine _processActionCoroutine;
/// <summary>
/// プロセスを一時停止するかどうかのフラグです。
/// </summary>
public bool IsPausedProcess { get; private set; }
/// <summary>
/// メッセージをポーズするかどうかのフラグです。
/// </summary>
public bool IsPausedMessage { get; private set; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment