Counter-based pause
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user