.
This commit is contained in:
parent
8f979217ce
commit
acc84c167d
@ -16,9 +16,10 @@ public class PlayerController : MonoBehaviour
|
|||||||
{
|
{
|
||||||
h = Input.GetAxis("Horizontal"); // 1차원 연속값 -1.0 ~ 0.0 ~ +1.0
|
h = Input.GetAxis("Horizontal"); // 1차원 연속값 -1.0 ~ 0.0 ~ +1.0
|
||||||
v = Input.GetAxis("Vertical"); // -1.0f ~ 0.0f ~ +1.0f
|
v = Input.GetAxis("Vertical"); // -1.0f ~ 0.0f ~ +1.0f
|
||||||
Debug.Log("h=" + h + " v=" + v);
|
// Debug.Log("h=" + h + " v=" + v);
|
||||||
|
Debug.Log($"h={h} / v={v}");
|
||||||
|
|
||||||
transform.Translate(Vector3.forward * 0.01f);
|
transform.Translate(Vector3.forward * v * 0.01f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user