Exemple #1
0
    // Use this for initialization
    void Start()
    {
        if (SceneManager.GetActiveScene().buildIndex == (int)buildIndexScenas.puntajes)
        {
            nVecesPunt = PlayerPrefs.GetInt("nPuntajes");
        }
        else if (SceneManager.GetActiveScene().buildIndex != (int)buildIndexScenas.puntajes)
        {
            nVeces = PlayerPrefs.GetInt("nNiveles");
        }

        if (nVeces >= 4 || nVecesPunt >= 4)
        {
            EasyGoogleMobileAds.GetInterstitialManager().ShowInterstitial();

            if (nVeces >= 4)
            {
                PlayerPrefs.SetInt("nNiveles", 0);
            }
            if (nVecesPunt >= 4)
            {
                PlayerPrefs.SetInt("nPuntajes", 0);
            }

            Debug.Log("punt: " + nVecesPunt + ":niv: " + nVeces);
        }
    }
Exemple #2
0
 public void BackMenu()
 {
     SceneManager.LoadScene(0);
     //string[] testDeviceIDs = new string[] { "E92E9A6745B85439C2EA180AB0010A87" };
     //EasyGoogleMobileAds.GetInterstitialManager().SetTestDevices(true, testDeviceIDs);
     EasyGoogleMobileAds.GetInterstitialManager().PrepareInterstitial("ca-app-pub-5824217627914801/5284446976");
     EasyGoogleMobileAds.GetInterstitialManager().ShowInterstitial();
 }
Exemple #3
0
 void Start()
 {
     Carregar();
     ((PlayGamesPlatform)Social.Active).Authenticate((bool success) => { }, true);
     string[] testDeviceIDs = new string[] { "2B9F1BDC694BDEBED5847139CF67C5E3" };
     EasyGoogleMobileAds.GetInterstitialManager().SetTestDevices(true, testDeviceIDs);
     EasyGoogleMobileAds.GetInterstitialManager().PrepareInterstitial("ca-app-pub-9639282647804237/1871858105");
 }
Exemple #4
0
    // Use this for initialization
    void Start()
    {
        Cargar();

        //GooglePlayGames
        ((PlayGamesPlatform)Social.Active).Authenticate((bool success) => {}, true);
        //Intersticial
        string[] testDeviceIDs = new string[] { "0EA90E1E80DC666D3E0018F91D3623D6" };
        EasyGoogleMobileAds.GetInterstitialManager().SetTestDevices(true, testDeviceIDs);
        EasyGoogleMobileAds.GetInterstitialManager().PrepareInterstitial("ca-app-pub-4397504908042634/8131523708");
    }
Exemple #5
0
    void initAd()
    {
        string[] testDeviceIDs = new string[] { "5F4C090B19AD61E77B6E486313BA3142",
                                                "C8F954CBD1FABF8E63499AB635B62DD6" };
        EasyGoogleMobileAds.GetInterstitialManager().SetTestDevices(true, testDeviceIDs);
        string[] keywords = new string[] { "videojuegos",
                                           "flappy", "bird", "flappy bird",
                                           "geometry", "dash", "geometry dash",
                                           "retro", "plataformas", "juegos", "indie",
                                           "games", "videogames", "rpg", "unity", "unity3d" };
        EasyGoogleMobileAds.GetInterstitialManager().SetKeywords(keywords);

        EasyGoogleMobileAds.GetInterstitialManager().PrepareInterstitial("ca-app-pub-5935337486447963/1634183337");
    }
 void Start()
 {
     if (ActivarIntersticial == true)
     {
         if (partidasiguiente >= partidaparaIntersticial)
         {
             EasyGoogleMobileAds.GetInterstitialManager().ShowInterstitial();
             partidasiguiente = 1;
         }
         else
         {
             partidasiguiente++;
         }
     }
 }
Exemple #7
0
 void CargarNivel()
 {
     if (Application.loadedLevelName == "GameScene")
     {
         if (partida == partidasParaMostrarIntersticial)
         {
             EasyGoogleMobileAds.GetInterstitialManager().ShowInterstitial();
             partida = 1;
         }
         else
         {
             partida++;
         }
     }
     Application.LoadLevel(escena);          //Cambia de escena al pulsar el boton
 }
Exemple #8
0
 public void showAd()
 {
     EasyGoogleMobileAds.GetInterstitialManager().ShowInterstitial();
 }
 // Use this for initialization
 void Start()
 {
     string[] testDeviceIDs = new string[] { "test device id" };
     EasyGoogleMobileAds.GetInterstitialManager().SetTestDevices(true, testDeviceIDs);
     EasyGoogleMobileAds.GetInterstitialManager().PrepareInterstitial("");
 }