Example #1
0
 public override void FetchAds(AdsElement type)
 {
     if (ads)
     {
         ads.FetchAds(type);
     }
 }
    IEnumerator CheckAdsState()
    {
        adsElement.adsIsNotReady.Raise();
        ads.FetchAds(adsElement);
        while (true)
        {
            if (!ads.IsAvilable(adsElement))
            {
                adsElement.IsReady = false;
            }
            else
            {
                adsElement.IsReady = true;
            }
            yield return(new WaitForSeconds(updateFrequency));

            Debug.Log("Checker work");
        }
    }