Counter-based pause

This commit is contained in:
Michal Pikulski
2025-10-24 09:52:28 +02:00
parent ef3b4bf369
commit 7bb905eb6b
2 changed files with 55 additions and 58 deletions

View File

@@ -162,7 +162,7 @@ namespace UI
{
if (pauseButton != null) pauseButton.SetActive(false);
InputManager.Instance.SetInputMode(InputMode.UI);
GameManager.Instance.RequestGamePause();
GameManager.Instance.RequestPause(this);;
Logging.Debug("[PauseMenu] Game Paused");
}
@@ -170,7 +170,7 @@ namespace UI
{
if (pauseButton != null) pauseButton.SetActive(true);
InputManager.Instance.SetInputMode(InputMode.GameAndUI);
GameManager.Instance.RequestGameResume();
GameManager.Instance.ReleasePause(this);
Logging.Debug("[PauseMenu] Game Resumed");
}