Merge pull request #8037 from fearn-e/characterbody2d-tutorial-cs-typo

C# code example bug in CharacterBody2D tutorial
This commit is contained in:
Max Hilbrunner
2023-10-06 13:23:01 +02:00
committed by GitHub
@@ -511,7 +511,7 @@ Here's the code for the player body:
velocity.Y = _jumpSpeed;
// Get the input direction.
Vector2 direction = Input.GetAxis("ui_left", "ui_right");
float direction = Input.GetAxis("ui_left", "ui_right");
velocity.X = direction * _speed;
Velocity = velocity;