Esempio n. 1
0
    public IEnumerator TriggerGameOver()
    {
        yield return(new WaitForEndOfFrame());

        if (ScoreCounter.Life == 0 && !isGameOverTriggered)
        {
            isGameOverTriggered = true;
            _audioClipTap.PlayOneShot(_audioClipDontTap.clip);
            GameOver.showGameOverAnimation = true;
            _enableCollider         = false;
            SpawnTile._disableSpwan = true;
            GoogleAds.ShowInterstitial(2f);
        }
        else if (ScoreCounter.Life != 0)
        {
            ScoreCounter.Life--;
            _audioClipTap.PlayOneShot(_audioClipDontTap.clip);
        }
    }
Esempio n. 2
0
 public void ShowInterstitial()
 {
     googleAds.ShowInterstitial();
 }