Ejemplo n.º 1
0
    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;
        }
    }
Ejemplo n.º 2
0
    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;
            }
        }
    }
Ejemplo n.º 3
0
    //	void Update()
    //	{
    //		Instance.timerText = String.Format("{0:D2}:{1:D2}", videoWait/60, videoWait%60);
    //	}

    void Play()
    {
        Tapdaq.ShowInterstitial();
        Application.LoadLevelAsync(1);
    }
Ejemplo n.º 4
0
 public void ShowInterstitial()
 {
     Tapdaq.ShowInterstitial();
 }