Exemplo n.º 1
0
 public static void adsCallingrewardFull(int Type, string id /*,int occurances ,int occur*/)
 {
     if (Type == 3)
     {
         googleads.ShowInterstitial(id);
     }
     else if (Type == 4)
     {
         googleads.ShowRewardBasedVideo(id);
     }
 }
Exemplo n.º 2
0
    IEnumerator SetGameOver()
    {
        GameManager.state = GameManager.OVER;
        gamecontroller.GameOver();
        yield return(new WaitForSeconds(0.9f));

        levelmenu.UpdateMainInformation();
        mainPanel.SetActive(false);
        pausePanel.SetActive(true);
        gameOverTitle.SetActive(true);
        retryButton.SetActive(true);
        resumeButton.SetActive(false);
        pausedTitle.SetActive(false);
        count   = count + 1;
        count1 += 1;
        PlayerPrefs.SetInt("count", count);
        PlayerPrefs.SetInt("count1", count1);
        PlayerPrefs.Save();
        gems  = ZPlayerPrefs.GetInt("totalgems");
        hasad = reward.HasAd();
        Debug.Log(gems.ToString());
        if (gems >= 10)
        {
            revive1.SetActive(true);
        }
        else
        {
            revive1.SetActive(false);
        }

        if (hasad == true && count1 >= 4)
        {
            revive2.SetActive(true);
        }
        else
        {
            revive2.SetActive(false);
        }
        if (count >= 3)
        {
            interstitial.ShowInterstitial();
            PlayerPrefs.SetInt("count", 0);
            PlayerPrefs.Save();
        }
        playcounter = ZPlayerPrefs.GetInt("playcounter");
        ZPlayerPrefs.SetInt("playcounter", playcounter + 1);
        ZPlayerPrefs.Save();
    }
Exemplo n.º 3
0
 public void ShowInterestial()
 {
     ads.ShowInterstitial();
 }