13 lines
235 B
GDScript
13 lines
235 B
GDScript
class_name Plant extends Node
|
|
|
|
@onready var hitbox: Hitbox = $Hitbox
|
|
|
|
func _ready() -> void:
|
|
hitbox.damaged.connect(take_damage)
|
|
|
|
func _process(_delta: float) -> void:
|
|
pass
|
|
|
|
func take_damage(_hurtbox: Hurtbox) -> void:
|
|
queue_free()
|