Преглед изворни кода

Merge pull request #8321 from dkgv/patch-1

Use Node2D instead of PhysicsBody2D for C# collision example
Max Hilbrunner пре 1 година
родитељ
комит
b02980712d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      getting_started/first_2d_game/03.coding_the_player.rst

+ 1 - 1
getting_started/first_2d_game/03.coding_the_player.rst

@@ -497,7 +497,7 @@ this code to the function:
 
  .. code-tab:: csharp
 
-    private void OnBodyEntered(PhysicsBody2D body)
+    private void OnBodyEntered(Node2D body)
     {
         Hide(); // Player disappears after being hit.
         EmitSignal(SignalName.Hit);