1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-25 17:14:20 +00:00

Use new syntax for signals in Collectible

This commit is contained in:
Steffo 2023-10-03 02:09:12 +02:00
parent 6f3b0be6cb
commit f7c0b2359a
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -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. ## 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(): func collect():
emit_signal("collected") collected.emit()
func _on_done(): func _on_done():