Esempio n. 1
0
    void PauseGame()
    {
        _inputManager.OnBackKeyPressed.RemoveListener(PauseGame);

        _gameFlowManager.PauseGame();
        DisplayGameMenu();
    }
Esempio n. 2
0
    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);
    }
Esempio n. 3
0
    public void OnClicked_Pause()
    {
        Debug.Log("Pause button clicked");

        m_gameflowManager.PauseGame();
    }