Fix collectable fade away logic to ensure proper cleanup after sound effect finishes

This commit is contained in:
2025-05-29 01:03:49 +02:00
parent 26af7a591d
commit a098155b0f

View File

@@ -33,4 +33,5 @@ func _on_area2d_body_entered(body: Node2D) -> void:
if not has_fade_away:
if sfx:
await sfx.finished
root.queue_free()
root.queue_free()