view Assets/Application/Scripts/CharactorManager.cs @ 8:599bd8ddb72b

Create Item Tree and Create Stage.
author Kazuma Takeda
date Tue, 17 Jan 2017 19:57:19 +0900
parents 2878be4487ec
children
line wrap: on
line source

using UnityEngine;
using System.Collections;

// Player Enemy どちらもここで制御する
public class CharactorManager : MonoBehaviour {


	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		// Playerの制御
		PlayerController();
	}

	public void PlayerController () {
		Player.Instance.Move (Input.GetKey(KeyCode.P));
		Player.Instance.EyeMove (new Vector3 (InputManager.Instance.InputX, InputManager.Instance.InputZ, 0));
		if (Input.GetKeyDown (KeyCode.Space)) {
			Player.Instance.GetItem ();
		}
	}
}