Files
colors-path/Scenes/label.gd
T

12 lines
346 B
GDScript

extends Label
@onready var statemachine = $"../StateMachine"
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
self.text = str(statemachine.current_state)