mirror of
https://github.com/Steffo99/swear-jar.git
synced 2024-11-25 00:54:19 +00:00
temp fix for the sound absorb thingy
This commit is contained in:
parent
8cd20aa2db
commit
57d936530e
1 changed files with 2 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue