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); } }
public void ShowInterstitial() { googleAds.ShowInterstitial(); }