Map wände gefixt und boden hinzugefügt außerdem PlayerController steuerbar mit W,A,S,D

This commit is contained in:
2026-06-16 15:05:07 +02:00
parent 3f55580d92
commit 81106345f3
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;
}
}
}