|
@@ -459,7 +459,7 @@ Add this code to the function:
|
|
func _on_Player_body_entered(body):
|
|
func _on_Player_body_entered(body):
|
|
hide() # Player disappears after being hit.
|
|
hide() # Player disappears after being hit.
|
|
emit_signal("hit")
|
|
emit_signal("hit")
|
|
- $CollisionShape2D.call_deferred("set_disabled", true)
|
|
|
|
|
|
+ $CollisionShape2D.set_deferred("disabled", true)
|
|
|
|
|
|
.. code-tab:: csharp
|
|
.. code-tab:: csharp
|
|
|
|
|