-
-
Save todorok1/43b7110733ce4a7be204f317511a3689 to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第39回 戦闘の開始処理を行うクラス
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 BattleStarter : MonoBehaviour | |
{ | |
/// <summary> | |
/// 戦闘の管理を行うクラスへの参照です。 | |
/// </summary> | |
BattleManager _battleManager; | |
/// <summary> | |
/// 戦闘の開始処理を行います。 | |
/// </summary> | |
public void StartBattle(BattleManager battleManager) | |
{ | |
_battleManager = battleManager; | |
// 戦闘関連のUIを非表示にします。 | |
HideAllUI(); | |
// スプライトを表示します。 | |
ShowSprites(); | |
// ステータスのUIを表示します。 | |
ShowStatus(); | |
// コマンドウィンドウを表示します。 | |
ShowCommand(); | |
// 敵の名前ウィンドウを表示します。 | |
ShowEnemyNameWindow(); | |
// 敵出現のメッセージを表示します。 | |
ShowEnemyAppearMessage(); | |
} | |
/// <summary> | |
/// 戦闘関連のUIを全て非表示にします。 | |
/// </summary> | |
void HideAllUI() | |
{ | |
} | |
/// <summary> | |
/// 戦闘関連のスプライトを表示します。 | |
/// </summary> | |
void ShowSprites() | |
{ | |
} | |
/// <summary> | |
/// 現在のステータスを表示します。 | |
/// </summary> | |
void ShowStatus() | |
{ | |
} | |
/// <summary> | |
/// コマンド入力のUIを表示します。 | |
/// </summary> | |
void ShowCommand() | |
{ | |
} | |
/// <summary> | |
/// 敵キャラクターの名前表示ウィンドウを表示します。 | |
/// </summary> | |
void ShowEnemyNameWindow() | |
{ | |
} | |
/// <summary> | |
/// 敵キャラクターが出現したメッセージを表示します。 | |
/// </summary> | |
void ShowEnemyAppearMessage() | |
{ | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment