Exemple #1
0
 public static void adsCalling(int Type, String id)
 {
     if (Type == 1)
     {
         googleads.RequestBanner(GoogleMobileAds.Api.AdPosition.Top, id);
     }
     else if (Type == 2)
     {
         googleads.RequestNativeExpressAdView(id);
     }
     else if (Type == 3)
     {
         googleads.RequestInterstitial(id);
     }
     else if (Type == 4)
     {
         googleads.RequestRewardBasedVideo(id);
     }
 }
Exemple #2
0
    // Use this for initialization
    void Start()
    {
        SaveManager.instance.state.firstInGame = false;
        SaveManager.instance.Save();
        ggAdmob  = GameObject.Find("GGAmobs").GetComponent <GoogleMobileAdsDemoScript> ();
        ggAdmobs = ggAdmob;

        isViewRewardAds  = 0;
        minutesLastClick = 0;
        minutesWait      = 300;
        ggAdmobs.RequestBanner();
        ggAdmobs.RequestInterstitial();
        ggAdmobs.RequestRewardBasedVideo();
        if (!isTestGame)
        {
            StartCoroutine(Wait(Random.Range(3f, 5f)));
        }
        else
        {
            StartCoroutine(Wait(0));
        }
    }
Exemple #3
0
    void Start()
    {
        fadeGroup       = FindObjectOfType <CanvasGroup> ();
        fadeGroup.alpha = 1;

        if (Time.time < LogoTime)
        {
            loadTime = LogoTime;
        }
        else
        {
            loadTime = Time.time;
        }

        ads.RequestBanner();
        ads.RequestInterstitial();
        ads.RequestRewardBasedVideo();

        SaveManager.instance.state.isUnlockItemHat[0]   = true;
        SaveManager.instance.state.isUnlockItemWp [0]   = true;
        SaveManager.instance.state.isUnlockItemFoot [0] = true;
        SaveManager.instance.Save();
    }