Skip to content

Commit 3056130

Browse files
authored
Replace incorrect Speed variable in C# snippet in scripting_player_input.rst (#7401)
2 parents c2b9aec + ec366a6 commit 3056130

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

getting_started/step_by_step/scripting_player_input.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ velocity. Replace the line starting with ``var velocity`` with the code below.
102102
var velocity = Vector2.Zero;
103103
if (Input.IsActionPressed("ui_up"))
104104
{
105-
velocity = Vector2.Up.Rotated(Rotation) * Speed;
105+
velocity = Vector2.Up.Rotated(Rotation) * _speed;
106106
}
107107

108108
We initialize the ``velocity`` with a value of ``Vector2.ZERO``, another

0 commit comments

Comments
 (0)