otherworldly_simulation/scene/test/self_character.gd

16 lines
344 B
GDScript3
Raw Normal View History

2024-10-25 15:41:39 +08:00
extends Unit
func _ready() -> void:
2024-10-28 19:24:10 +08:00
unit_data=Database.get_unit_data(unit_data_from_id,unit_id)
2024-10-25 15:41:39 +08:00
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.