mirror of
https://github.com/godotengine/godot-docs.git
synced 2025-12-31 17:49:03 +03:00
Use Node2D instead of PhysicsBody2D
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user