From 246ee42ca2dabe32001df2b59924d540f98d1113 Mon Sep 17 00:00:00 2001 From: LeeJaeHyun Date: Wed, 11 Sep 2024 14:07:21 +0900 Subject: [PATCH] . --- Assets/02_Scripts/PlayerController.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Assets/02_Scripts/PlayerController.cs b/Assets/02_Scripts/PlayerController.cs index a7bbd60..d0e47fc 100644 --- a/Assets/02_Scripts/PlayerController.cs +++ b/Assets/02_Scripts/PlayerController.cs @@ -14,8 +14,9 @@ public class PlayerController : MonoBehaviour void Update() { - // transform.position += new Vector3(0, 0, 1) * 0.01f; - // transform.position += Vector3.forward * 0.01f; + h = Input.GetAxis("Horizontal"); + Debug.Log("h=" + h); + transform.Translate(Vector3.forward * 0.01f); } }