From 8f979217cedc3ea969abe79cb4b118de5f8c9504 Mon Sep 17 00:00:00 2001 From: LeeJaeHyun Date: Wed, 11 Sep 2024 14:12:27 +0900 Subject: [PATCH] . --- Assets/02_Scripts/PlayerController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/02_Scripts/PlayerController.cs b/Assets/02_Scripts/PlayerController.cs index ee32d63..cbc47b0 100644 --- a/Assets/02_Scripts/PlayerController.cs +++ b/Assets/02_Scripts/PlayerController.cs @@ -15,7 +15,8 @@ public class PlayerController : MonoBehaviour void Update() { h = Input.GetAxis("Horizontal"); // 1차원 연속값 -1.0 ~ 0.0 ~ +1.0 - Debug.Log("h=" + h); + v = Input.GetAxis("Vertical"); // -1.0f ~ 0.0f ~ +1.0f + Debug.Log("h=" + h + " v=" + v); transform.Translate(Vector3.forward * 0.01f); }