0
|
1 using UnityEngine;
|
|
2 using System.Collections;
|
|
3
|
|
4 // Player Enemy どちらもここで制御する
|
|
5 public class CharactorManager : MonoBehaviour {
|
8
|
6
|
|
7
|
0
|
8 // Use this for initialization
|
|
9 void Start () {
|
|
10
|
|
11 }
|
|
12
|
|
13 // Update is called once per frame
|
|
14 void Update () {
|
|
15 // Playerの制御
|
3
|
16 PlayerController();
|
|
17 }
|
|
18
|
|
19 public void PlayerController () {
|
4
|
20 Player.Instance.Move (Input.GetKey(KeyCode.P));
|
0
|
21 Player.Instance.EyeMove (new Vector3 (InputManager.Instance.InputX, InputManager.Instance.InputZ, 0));
|
3
|
22 if (Input.GetKeyDown (KeyCode.Space)) {
|
|
23 Player.Instance.GetItem ();
|
|
24 }
|
0
|
25 }
|
|
26 }
|