From f7c0b2359a95d719f955ef4ea457db7a8fd3571f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 3 Oct 2023 02:09:12 +0200 Subject: [PATCH] Use new syntax for signals in `Collectible` --- collector/collectible.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/collectible.gd b/collector/collectible.gd index cd30f0e..3d1ac3f 100644 --- a/collector/collectible.gd +++ b/collector/collectible.gd @@ -15,7 +15,7 @@ signal collected ## ## You'll probably want to connect this to an AudioSource2D, which will disable the node and play a sound, and when the sound is over a new signal will queue_free it. func collect(): - emit_signal("collected") + collected.emit() func _on_done():