So ändern Sie die Achse einer Vector3 -Variablen
Vector3 playerPosition = new Vector3(0, 0, 0);
void Update()
{
Input.Getkey("w")
{
playerPosition = transform.position;
playerPosition.x -= 1f;
transform.position = playerPosition;
}
}
Comfortable Capybara