Refactor pause handling; implement GameBus for pause state management and update event popup behavior

This commit is contained in:
2025-08-24 00:37:06 +02:00
parent 6d8139fd44
commit 1b3657b03a
5 changed files with 101 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ public partial class EventManager : Node
private void FireEvent(EventDefinition eventDef)
{
GetTree().Paused = true;
GameBus.Instance.SetPause(true);
var popup = _eventPopupScene.Instantiate<EventPopup>();
_eventPopupContainer.AddChild(popup);