void ResumeGame(GameObject menu) { _hideTriggerEvent.OnAnimationEnd.RemoveListener(ResumeGame); _gameFlowManager.ResumeGame(); _inputManager.OnBackKeyPressed.AddListener(PauseGame); }
public void ContinueGame() { if (!isBlockedForDoubleClicksProtection && !isBlockedUntilGameIsLoaded) { gameFlowManager.ResumeGame(); } }
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); }