9 lines
187 B
GDScript
9 lines
187 B
GDScript
extends Node
|
|
|
|
|
|
func _ready() -> void:
|
|
if get_parent().player == null: return
|
|
get_parent().player.died.connect(on_death)
|
|
|
|
func on_death() -> void:
|
|
get_parent().system.drop_slot("bomb")
|