Files
godot-shader-experiments/GECS/components/c_health.gd
2026-01-15 15:27:48 +01:00

10 lines
193 B
GDScript

class_name C_Health
extends Component
@export var current: float = 100.0
@export var maximum: float = 100.0
func _init(max_health: float = 100.0):
maximum = max_health
current = max_health