void PauseGame() { _inputManager.OnBackKeyPressed.RemoveListener(PauseGame); _gameFlowManager.PauseGame(); DisplayGameMenu(); }
private IEnumerator ShowQuote() { gameFlowManager.SetPauseAllowed(false); gameFlowManager.SetKeepMouseLock(true); gameFlowManager.PauseGame(false); textOutput.ShowText(TextManager.GetQuote(), TextOutput.TextAreaSize.Small); yield return(new WaitWhile(() => textOutput.IsActive())); gameFlowManager.SetPauseAllowed(true); gameFlowManager.SetKeepMouseLock(false); gameFlowManager.ResumeGame(false); }
public void OnClicked_Pause() { Debug.Log("Pause button clicked"); m_gameflowManager.PauseGame(); }