Exemplo n.º 1
0
    void Start()
    {
        UpdateAudio();

        switch (Application.platform)
        {
        case RuntimePlatform.OSXWebPlayer:
        case RuntimePlatform.WindowsWebPlayer:
        case RuntimePlatform.NaCl:
            fullScreenAvailable = true;
            quitEnabled         = false;
            directKeyQuit       = false;
            break;

        case RuntimePlatform.FlashPlayer:
            fullScreenAvailable = false;
            quitEnabled         = false;
            directKeyQuit       = false;
            break;

        case RuntimePlatform.OSXPlayer:
        case RuntimePlatform.WindowsPlayer:
            fullScreenAvailable = true;
            directKeyQuit       = false;
            break;
        }

        #if UNITY_ANDROID || UNITY_IPHONE
        if (mInterstitial == null || mBanner == null)
        {
            TapSense.setTestMode();
            TapSense.setShowDebugLog();

            mInterstitial = new TapSense.TapSenseInterstitial(INTERSTITIAL_AD_UNIT_ID);
            mInterstitial.setListener(this);
            mInterstitial.setVideoListener(this);

            mBanner = new TapSense.TapSenseAdView(BANNER_AD_UNIT_ID,
                                                  TapSense.BannerPosition.TOP,
                                                  TapSense.AdSize.Banner);
            mBanner.setListener(this);
            mBanner.loadAd();
        }
        mBanner.setVisibility(false);
        #endif
    }
Exemplo n.º 2
0
 public void onAdViewCollapsed(TapSense.TapSenseAdView banner)
 {
     Debug.Log("In DemoControl.onAdViewCollapsed");
 }
Exemplo n.º 3
0
 public void onAdViewFailedToLoad(TapSense.TapSenseAdView banner)
 {
     Debug.Log("In DemoControl.onAdViewFailedToLoad");
 }