1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-21 23:34:18 +00:00

Remove duplicate goal signal emission from Collector

This commit is contained in:
Steffo 2023-10-03 01:49:10 +02:00
parent f9e1fa6578
commit 9245a015dd
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -33,6 +33,5 @@ func _on_body_entered(body: Node2D):
sound_absorb.play() sound_absorb.play()
collected.emit(body) collected.emit(body)
if collected_count >= collecting_amount: if collected_count >= collecting_amount:
goal.emit()
goal.emit() goal.emit()
collected_count = 0 collected_count = 0