Exemple #1
0
        IEnumerator CheckInterstititalTimer()
        {
            foreach (var item in interstitialButtons)
            {
                item.interactable = hasInterstitial;
            }
            yield return(checkDelay);

            do
            {
                var isLoaded = AdsMaster.IsLoadedInterstitial();
                if (isLoaded != hasInterstitial)
                {
                    hasInterstitial = isLoaded;
                    foreach (var item in interstitialButtons)
                    {
                        item.interactable = hasInterstitial;
                    }
                }
                yield return(checkDelay);
            } while (true);
        }