This commit is contained in:
LeeJaeHyun 2024-09-11 14:08:25 +09:00
parent 246ee42ca2
commit b0f850f6b2

View File

@ -14,7 +14,7 @@ public class PlayerController : MonoBehaviour
void Update() void Update()
{ {
h = Input.GetAxis("Horizontal"); h = Input.GetAxis("Horizontal"); // 1차원 연속값 -1.0 ~ 0.0 ~ +1.0
Debug.Log("h=" + h); Debug.Log("h=" + h);
transform.Translate(Vector3.forward * 0.01f); transform.Translate(Vector3.forward * 0.01f);