1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-10-16 22:37:26 +00:00

temp fix for the sound absorb thingy

This commit is contained in:
Steffo 2023-10-02 16:31:08 +02:00
parent 8cd20aa2db
commit 57d936530e
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -29,7 +29,8 @@ func _on_body_entered(body: Node2D):
if collectible and collectible.type in collecting_types:
collected_count += 1
collectible.collect()
$sound_absorb.play()
if sound_absorb:
sound_absorb.play()
emit_signal("collected", body)
if collected_count >= collecting_amount:
emit_signal("goal")