Exemplo n.º 1
0
    void OnInterstitialShow(string zoneId)
    {
        Debug.Log("OnInterstitialShow");
        if (dicInterstitialShow.ContainsKey(zoneId))
        {
            Action onInterstitialShow = dicInterstitialShow[zoneId];
            onInterstitialShow();

            BidmadInterstitial interstitial = new BidmadInterstitial(zoneId);
            interstitial.load();
        }
    }
Exemplo n.º 2
0
    public void LoadInterstitialAd()
    {
#if UNITY_ANDROID
        if (interstitial == null)
        {
            interstitial = new BidmadInterstitial("e9acd7fc-a962-40e4-aaad-9feab1b4f821");
        }
#elif UNITY_IOS || UNITY_IPHONE
        if (interstitial == null)
        {
            interstitial = new BidmadInterstitial("228b95a9-6f42-46d8-a40d-60f17f751eb1");
        }
#endif
        interstitial.load();

        interstitial.setInterstitialLoadCallback(OnInterstitialLoad);
        interstitial.setInterstitialShowCallback(OnInterstitialShow);
        interstitial.setInterstitialFailCallback(OnInterstitialFail);
        interstitial.setInterstitialCloseCallback(OnInterstitialClose);
    }