Added state component
This commit is contained in:
14
client/ui/debug/StateLabel.gd
Normal file
14
client/ui/debug/StateLabel.gd
Normal file
@ -0,0 +1,14 @@
|
||||
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]
|
Reference in New Issue
Block a user