grunk/src/equipment/sprayable.gd

13 lines
257 B
GDScript

class_name Sprayable extends StaticBody3D
## Called each frame this node takes a hit.
##
## Derived types should override `_hit()` as a lifecycle method.
func hit(damage: float) -> void:
_hit()
func _hit() -> void:
pass # Implemented in derived type