refactor event to EventWrapper

This commit is contained in:
Matt Parker
2025-12-12 19:26:41 +10:00
parent b23febbcea
commit 253b3f0aac
4 changed files with 9 additions and 10 deletions

View File

@@ -24,8 +24,8 @@ public partial class RunMenuItem : HBoxContainer
_stopButton.Pressed += OnStopButtonPressed;
_debugButton = GetNode<Button>("DebugButton");
_debugButton.Pressed += OnDebugButtonPressed;
Project.ProjectStartedRunning += OnProjectStartedRunning;
Project.ProjectStoppedRunning += OnProjectStoppedRunning;
Project.ProjectStartedRunning.Subscribe(OnProjectStartedRunning);
Project.ProjectStoppedRunning.Subscribe(OnProjectStoppedRunning);
}
private async Task OnProjectStoppedRunning()