sfx update
This commit is contained in:
parent
bf16dfe508
commit
cd361e3338
16 changed files with 682 additions and 105 deletions
|
@ -6,6 +6,9 @@ var max_health = 10.0
|
|||
func destroy():
|
||||
health -= 1
|
||||
|
||||
if health == 1:
|
||||
$PowerDownFX.play()
|
||||
|
||||
if health <= 0:
|
||||
if not is_queued_for_deletion():
|
||||
$"..".queue_free()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue