Exemplo n.º 1
0
    protected IEnumerator ShowScoreView()
    {
        if (scoreView != null)
        {
            yield return(new WaitForSeconds(1));

            scoreView.gameObject.SetActive(true);
            scoreView.SetScore(score);
            player.canShoot = false;
            isPlaying       = false;
            yield return(new WaitForSeconds(2));

            scoreView.gameObject.SetActive(false);
            countDownView.gameObject.SetActive(true);
            countDownView.CountDown();
        }
    }