mtd/Scripts/hitbox.gd

8 lines
142 B
GDScript

class_name Hitbox extends CollisionShape3D
signal took_damage(amount: float)
func damage(amount: float) -> void:
took_damage.emit(amount)