otherworldly_simulation/scene/test/self_character.gd
2024-10-25 15:41:39 +08:00

16 lines
285 B
GDScript

extends Unit
func _ready() -> void:
super._ready()
state_machine.launch()
func _on_state_value_changed(state_value_name: String, value: Variant) -> void:
match state_value_name:
"hp":
%hp.value=value
"hp_max":
%hp.max_value=value
pass # Replace with function body.