mirror of
https://github.com/Steffo99/swear-jar.git
synced 2024-11-26 01:24: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:
|
if collectible and collectible.type in collecting_types:
|
||||||
collected_count += 1
|
collected_count += 1
|
||||||
collectible.collect()
|
collectible.collect()
|
||||||
$sound_absorb.play()
|
if sound_absorb:
|
||||||
|
sound_absorb.play()
|
||||||
emit_signal("collected", body)
|
emit_signal("collected", body)
|
||||||
if collected_count >= collecting_amount:
|
if collected_count >= collecting_amount:
|
||||||
emit_signal("goal")
|
emit_signal("goal")
|
||||||
|
|
Loading…
Reference in a new issue