mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 17:28:58 +00:00
Merge pull request #8037 from fearn-e/characterbody2d-tutorial-cs-typo
C# code example bug in CharacterBody2D tutorial
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user