This commit is contained in:
GodGodGod20081
2026-06-18 12:24:40 +02:00
3 changed files with 178 additions and 60 deletions
+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;
}
}
}