Fix collectable fade away logic to ensure proper cleanup after sound effect finishes
This commit is contained in:
@@ -33,4 +33,5 @@ func _on_area2d_body_entered(body: Node2D) -> void:
|
|||||||
if not has_fade_away:
|
if not has_fade_away:
|
||||||
if sfx:
|
if sfx:
|
||||||
await sfx.finished
|
await sfx.finished
|
||||||
|
|
||||||
root.queue_free()
|
root.queue_free()
|
||||||
|
Reference in New Issue
Block a user