public void ShowInterstitial()
{
if (disableAds)
return;
if (interstitial.IsLoaded())
{
interstitial.Show();
}
}
private void OnDestroy() { if (++gameCount == 5) { GoogleMobileAdsScript.ShowInterstitial(); gameCount = 0; } LockRegister.DestroyBoard(); Destroy(score); Destroy(restart); Destroy(multiTouch); Destroy(wall); Instantiate(menu); }