This commit is contained in:
GodGodGod20081 committed 2026-06-18 12:24:40 +02:00
commit 30b26c2a7a
3 files changed
+178 -60

No files matched your search

+13 -1
View File
@@ -21,7 +21,19 @@ public class PlayerController : MonoBehaviour
position = Vector3.zero;
if (Input.GetKey(KeyCode.W))
{
position += Vector3.forward;
}
if (Input.GetKey(KeyCode.A))
{
position += Vector3.left;
}
if (Input.GetKey(KeyCode.S))
{
position += Vector3.back;
}
if (Input.GetKey(KeyCode.D))
{
position += Vector3.right;
}
}
}