mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 15:00:09 +01:00
15 lines
333 B
GDScript
15 lines
333 B
GDScript
extends Panel
|
|
|
|
onready var fsm_node = get_node("../../Player/StateMachine")
|
|
|
|
func _process(_delta):
|
|
var states_names = ""
|
|
var numbers = ""
|
|
var index = 0
|
|
for state in fsm_node.states_stack:
|
|
states_names += state.get_name() + "\n"
|
|
numbers += str(index) + "\n"
|
|
index += 1
|
|
$States.text = states_names
|
|
$Numbers.text = numbers
|