Esempio 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
    }
Esempio n. 2
0
 public void onInterstitialSkippedVideo(TapSense.TapSenseInterstitial interstitial)
 {
     Debug.Log("In DemoControl.onInterstitialSkippedVideo()");
 }
Esempio n. 3
0
 public void onInterstitialShown(TapSense.TapSenseInterstitial interstitial)
 {
     Debug.Log("In DemoControl.onInterstitialShown()");
 }
Esempio n. 4
0
 public void onInterstitialDismissed(TapSense.TapSenseInterstitial interstitial)
 {
     Debug.Log("In DemoControl.onInterstitialDismissed()");
 }
Esempio n. 5
0
 public void onInterstitialFailedToLoad(TapSense.TapSenseInterstitial interstitial)
 {
     Debug.Log("In DemoControl.onInterstitialFailedToLoad()");
 }