Merge branch 'main' of https://git.bib.de/PBA3H25ABU/ClearTheZone
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user