Skip to content

Commit a151aa0

Browse files
committed
Use Node2D instead of PhysicsBody2D
1 parent 9536651 commit a151aa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

getting_started/first_2d_game/03.coding_the_player.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ this code to the function:
497497

498498
.. code-tab:: csharp
499499

500-
private void OnBodyEntered(PhysicsBody2D body)
500+
private void OnBodyEntered(Node2D body)
501501
{
502502
Hide(); // Player disappears after being hit.
503503
EmitSignal(SignalName.Hit);

0 commit comments

Comments
 (0)