Skip to content

Commit edd946f

Browse files
authored
Update 03.coding_the_player.rst
change _on_body_entered(body) to _on_body_entered(_body) to avoid warnings
1 parent 82dde48 commit edd946f

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
@@ -489,7 +489,7 @@ this code to the function:
489489
.. tabs::
490490
.. code-tab:: gdscript GDScript
491491

492-
func _on_body_entered(body):
492+
func _on_body_entered(_body):
493493
hide() # Player disappears after being hit.
494494
hit.emit()
495495
# Must be deferred as we can't change physics properties on a physics callback.

0 commit comments

Comments
 (0)