basic ECS spawner
This commit is contained in:
9
GECS/components/c_health.gd
Normal file
9
GECS/components/c_health.gd
Normal file
@@ -0,0 +1,9 @@
|
||||
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
|
||||
Reference in New Issue
Block a user