Exemplo n.º 1
0
    public void showBanner()
    {
        if (UserData.adRemoved)
        {
            return;
        }

        #if (UNITY_ANDROID || UNITY_IPHONE) && !UNITY_EDITOR
        if (_needChartboost && CBBinding.hasCachedInterstitial(null))
        {
            Debug.Log("C# chartboost banner");
            CBBinding.showInterstitial(null);
        }
        else
        {
            Debug.Log("C# playhaven banner");
            PlayHavenManager.instance.ContentRequest(Settings.instance.playhavenFullscreen, true);
            PlayHavenManager.instance.ContentPreloadRequest(Settings.instance.playhavenFullscreen);
        }

        if (_needChartboost)
        {
            CBBinding.cacheInterstitial(null);
        }

        _needChartboost = !_needChartboost;
        #endif
    }