Browse Source

Merge pull request #2478 from CodingInfraviolet/patch-1

Fix "looking around" C# example
Rémi Verschelde 6 năm trước cách đây
mục cha
commit
212116c915
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      tutorials/3d/using_transforms.rst

+ 1 - 1
tutorials/3d/using_transforms.rst

@@ -334,7 +334,7 @@ Example of looking around, FPS style:
 
     public override void _Input(InputEvent @event)
     {
-        if (mouseMotion is InputEventMouseMotion mouseMotion)
+        if (@event is InputEventMouseMotion mouseMotion)
         {
             // modify accumulated mouse rotation
             _rotationX += mouseMotion.Relative.x * LookAroundSpeed;