Use Node2D instead of PhysicsBody2D

This commit is contained in:
Gustav
2023-10-24 22:15:14 +02:00
parent 953665186d
commit a151aa0db2

View File

@@ -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);