Created
March 14, 2016 15:52
-
-
Save kentouemura/22feeaee01aa76e4f1e8 to your computer and use it in GitHub Desktop.
ゲームシーンクラス
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; | |
void Update() | |
{ | |
PlayerCommand command = playerInputHandler.InputHandler(); | |
// 行動したのであれば、インスペクターで指定したオブジェクトで実行する | |
if(command != null) | |
{ | |
command.Execute(player); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment