Esempio n. 1
0
    private void Update()
    {
        if (isDestroyingBanner && !isLoadingBanner && bannerView != null)
        {
            // Wait for ad to load before destroying/unloading it.
            bannerView.Destroy();
            bannerView       = null;
            bannerViewHeight = 0f;

            // Reset top HUD to shift down from banner ad.
            gameUi.AdjustForBannerAd(this, false);
            isDestroyingBanner = false;
        }
    }