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