15 lines
234 B
GDScript3
15 lines
234 B
GDScript3
|
extends DebugLabel
|
||
|
|
||
|
var keys := StateComponent.State.keys()
|
||
|
var state: StateComponent
|
||
|
|
||
|
func _process(_delta):
|
||
|
if !Global.player:
|
||
|
return
|
||
|
|
||
|
if !state:
|
||
|
state = Global.player.get_node("State")
|
||
|
return
|
||
|
|
||
|
text = keys[state.current]
|