14 lines
241 B
GDScript
14 lines
241 B
GDScript
class_name Hitbox extends Area2D
|
|
|
|
signal damaged(hurtbox: Hurtbox)
|
|
|
|
func _ready() -> void:
|
|
pass # Replace with function body.
|
|
|
|
|
|
func _process(_delta: float) -> void:
|
|
pass
|
|
|
|
func take_damage(hurtbox: Hurtbox) -> void:
|
|
damaged.emit(hurtbox)
|