init
This commit is contained in:
12
props/plants/plant.gd
Normal file
12
props/plants/plant.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user