Răsfoiți Sursa

Update 2d_movement.rst

Fixing typo in C# code sample
Anish Patel 1 an în urmă
părinte
comite
7ee9402d8d
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      tutorials/2d/2d_movement.rst

+ 1 - 1
tutorials/2d/2d_movement.rst

@@ -262,7 +262,7 @@ on the screen will cause the player to move to the target location.
         public override void _PhysicsProcess(double delta)
         {
             Velocity = Position.DirectionTo(_target) * Speed;
-            // LookAt(target);
+            // LookAt(_target);
             if (Position.DistanceTo(_target) > 10)
             {
                 MoveAndSlide();