예제 #1
0
    //bool VideoRequested = false;
    public void Start()
    {
        AdManager20.Start();
        //return;


        if (!IsPanouWarningTriggered)
        {
            Debug.Log(1);
            Negru.SetActive(true);
            Warning.SetActive(true);
            //Destroy(Warning, 2);
            //Destroy(Negru, 6);
            Invoke("PauseAnimation", 2);

            IsPanouWarningTriggered = true;
        }
        else
        {
            if (!AdManager20.ShowBanner())
            {
                AdManager20.RequestBannner(AdSize.Banner, AdPosition.Bottom);
            }
        }
        long clickTime = long.Parse(PlayerPrefs.GetString("cooldown", "0"));

        if (clickTime > 0)
        {
            cooldown     = new DateTime(clickTime);
            cooldownTime = cooldown.Subtract(DateTimeOffset.Now);
            if (cooldownTime.TotalSeconds <= 0)
            {
                //AdManager20.RequestRewardedVideo();
            }
        }
        else
        {
            //AdManager20.RequestRewardedVideo();
        }
        //AdManager20.RequestBannner(AdSize.SmartBanner, AdPosition.Bottom);
        PanelVizionare.SetActive(false);
        textboxEuroi.text           = PlayerPrefs.GetInt("euroi", 0).ToString();
        textboxCooldown.text        = "";
        RoseataCastigaEuroi.enabled = false;
        textboxConexiune.enabled    = false;

        if (!Social.localUser.authenticated)
        {
            StartGooglePlayServices();
            FirstSignIn();
        }
        //PlayerPrefs.SetString("cooldown", "0");
        //PlayerPrefs.SetInt("euroi", 9999999);
    }
예제 #2
0
 void BannerAfter5()
 {
     AdManager20.ShowBanner();
 }