Example #1
0
    public IEnumerator      GameOver()
    {
        _gameInfoPanel.gameObject.SetActive(false);
        _gameButtons.gameObject.SetActive(false);

        _gameOverPanel.gameObject.SetActive(true);
        _overTime.text  = timerText.text;
        _overScore.text = scoreText.text;

        _gameScript.popsTouch = false;
        yield return(new WaitForSeconds(gameOverDelay));

        _progScript.InitMenu();

        yield return(null);
    }