2024-02-27 23:21:44 +01:00

15 lines
241 B
GDScript

extends DebugLabel
var keys := StateComponent.State.keys()
var state: StateComponent
func _process(_delta: float):
if !Global.player:
return
if !state:
state = Global.player.get_node("State")
return
text = keys[state.current]