Skip to content

Commit b029807

Browse files
authored
Merge pull request #8321 from dkgv/patch-1
Use Node2D instead of PhysicsBody2D for C# collision example
2 parents a764591 + a151aa0 commit b029807

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)