.
This commit is contained in:
parent
b0f850f6b2
commit
8f979217ce
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user