mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +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