-
-
Save todorok1/6fa43b97313a59dc8cbdb5245690c821 to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第37回 戦闘に関する機能を管理するクラス
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
| using UnityEngine; | |
| namespace SimpleRpg | |
| { | |
| /// <summary> | |
| /// 戦闘に関する機能を管理するクラスです。 | |
| /// </summary> | |
| public class BattleManager : MonoBehaviour | |
| { | |
| /// <summary> | |
| /// 戦闘のフェーズです。 | |
| /// </summary> | |
| public BattlePhase BattlePhase { get; private set; } | |
| /// <summary> | |
| /// 選択されたコマンドです。 | |
| /// </summary> | |
| public BattleCommand SelectedCommand { get; private set; } | |
| /// <summary> | |
| /// エンカウントした敵キャラクターのIDです。 | |
| /// </summary> | |
| public int EnemyId { get; private set; } | |
| /// <summary> | |
| /// 戦闘開始からのターン数です。 | |
| /// </summary> | |
| public int TurnCount { get; private set; } | |
| /// <summary> | |
| /// 戦闘のフェーズを変更します。 | |
| /// </summary> | |
| /// <param name="battlePhase">変更後のフェーズ</param> | |
| public void SetBattlePhase(BattlePhase battlePhase) | |
| { | |
| BattlePhase = battlePhase; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment