using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerController : MonoBehaviour { private float h; private float v; void Start() { } void Update() { h = Input.GetAxis("Horizontal"); // 1차원 연속값 -1.0 ~ 0.0 ~ +1.0 Debug.Log("h=" + h); transform.Translate(Vector3.forward * 0.01f); } } /* Vector3.forward = Vector3(0, 0, 1) Vector3.up = Vector3(0, 1, 0) Vector3.right = Vector3(1, 0, 0) Vector3.one = Vector3(1, 1, 1) Vector3.zero = Vector3(0, 0, 0) */