oldie/scenes/debugger/StateDebugger.cs

19 lines
327 B
C#
Raw Normal View History

2022-11-20 01:46:03 -03:00
using Godot;
using System;
public class StateDebugger : Label
{
private Event _event;
public override void _Ready()
{
_event = GetNode<Event>("/root/Event");
_event.Connect("DebugState", this, "OnDebugState");
}
private void OnDebugState(string state)
{
Text = state;
}
}