generated from krampus/template-godot4
13 lines
257 B
GDScript3
13 lines
257 B
GDScript3
|
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
|