void MyListenerMethod_7(string orientation) { // Example: //Here we use a bool to avoid rapid fire interstitial spam. 'orientation' will either be PORTRAIT or LANDSCAPE if (!interstitialShown) { int orient = int.Parse(orientation); Debug.Log(string.Format("An interstitial for {0} orientation is available", (Tapdaq.TDOrientation)orient)); interstitialShown = true; Tapdaq.ShowInterstitial(); interstitialsAvailable = true; } }
void DisplayInterstitialWhenAvailable(string orientation) { if (!hasShowedInterstitial) { var orientationNumber = int.Parse(orientation); if (Screen.width < Screen.height && orientationNumber == 0) { Tapdaq.ShowInterstitial(); hasShowedInterstitial = true; } if (Screen.width > Screen.height && orientationNumber == 1) { Tapdaq.ShowInterstitial(); hasShowedInterstitial = true; } } }
// void Update() // { // Instance.timerText = String.Format("{0:D2}:{1:D2}", videoWait/60, videoWait%60); // } void Play() { Tapdaq.ShowInterstitial(); Application.LoadLevelAsync(1); }
public void ShowInterstitial() { Tapdaq.ShowInterstitial(); }