Пример #1
0
 private void Update()
 {
     if (!AdTime.lastAdSuccessful)
     {
         AdTime.AdThyme(AdTime.ADID_LOSS);
     }
 }
Пример #2
0
    IEnumerator showAd()
    {
        yield return(new WaitForSeconds(1.5f));

        if (adsEnabled)
        {
            //Play ad every third death
            int deathCount = PlayerPrefs.GetInt("deathCount");
            if (deathCount >= 2)
            {
                AdTime.AdThyme(AdTime.ADID_LOSS);
                PlayerPrefs.SetInt("deathCount", 0);
            }
            else
            {
                PlayerPrefs.SetInt("deathCount", deathCount + 1);
            }
            Debugger(deathCount.ToString());
        }
        endScreen();
    }