#nullable enable using Godot; namespace SideScrollerGame.Debug; public partial class DebugOverlay : CanvasLayer { public override void _Ready() { Layer = 100; ProcessMode = ProcessModeEnum.Always; EnsureLabel(); } public void SetStatus(DebugSettings settings, string loadedSceneId) { Label label = EnsureLabel(); label.Text = $"Debug boot: {settings.BootMode}\nSeed: {settings.Seed}\nScene: {loadedSceneId}\nDebug: {OS.IsDebugBuild()}"; } private Label EnsureLabel() { if (m_StatusLabel is not null) { return m_StatusLabel; } m_StatusLabel = GetNodeOrNull