This file contains 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; | |
using UnityEngine.UI; // UI操作のため必要 | |
using System.Collections; | |
public class ScenarioTextController : MonoBehaviour | |
{ | |
private static readonly float TEXT_COMPLETE_TIME = 0.5F; | |
private static readonly float TEXT_LENGTH_TIME = 0.03F; | |
/// <summary> |
This file contains 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; | |
using System.Collections; | |
/// <summary> | |
/// ゲームシーンクラス | |
/// </summary> | |
public class GameScene : MonoBehaviour | |
{ | |
[SerializeField] PlayerInputHandler playerInputHandler; | |
[SerializeField] Player player; |
This file contains 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; | |
using System.Collections; | |
/// <summary> | |
/// プレイヤー操作クラス | |
/// </summary> | |
public class PlayerInputHandler : MonoBehaviour | |
{ | |
/// <summary> | |
/// 移動コマンド |
This file contains 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; | |
using System.Collections; | |
/// <summary> | |
/// 移動コマンド | |
/// </summary> | |
public class MoveCommand : PlayerCommand | |
{ | |
/// <summary> | |
/// 移動 |
This file contains 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; | |
using System.Collections; | |
/// <summary> | |
/// プレイヤーの行動基底クラス | |
/// </summary> | |
public class PlayerCommand : MonoBehaviour | |
{ | |
/// <summary> | |
/// 実行する行動 |
This file contains 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; | |
using System.Collections; | |
/// <summary> | |
/// プレイヤークラス | |
/// </summary> | |
public class Player : CharacterBase | |
{ | |
/// <summary> | |
/// プレイヤーの移動速度 |
This file contains 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; | |
using System.Collections; | |
/// <summary> | |
/// キャラクター基底クラス | |
/// </summary> | |
public class CharacterBase : MonoBehaviour | |
{ | |
/// <summary> | |
/// 初期化 |
This file contains 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; | |
using System.Collections; | |
using UnityEngine.UI; // UI要素を使うため | |
public class TextController : MonoBehaviour | |
{ | |
const float TEXT_SPEED = 0.5F; | |
const float TEXT_SPEED_STRING = 0.05F; | |
const float COMPLETE_LINE_DELAY = 0.3F; |
This file contains 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; | |
using System.Collections; | |
public class Cube : MonoBehaviour | |
{ | |
void Start() | |
{ | |
ShowAnimation(); | |
} |