15 lines
241 B
GDScript3
Raw Normal View History

2024-02-15 12:45:17 +00:00
extends DebugLabel
var keys := StateComponent.State.keys()
var state: StateComponent
2024-02-27 22:21:44 +00:00
func _process(_delta: float):
2024-02-15 12:45:17 +00:00
if !Global.player:
return
if !state:
state = Global.player.get_node("State")
return
text = keys[state.current]