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 }
public void onAdViewCollapsed(TapSense.TapSenseAdView banner) { Debug.Log("In DemoControl.onAdViewCollapsed"); }
public void onAdViewFailedToLoad(TapSense.TapSenseAdView banner) { Debug.Log("In DemoControl.onAdViewFailedToLoad"); }