Esempio n. 1
0
    public void On_consentokbutton()
    {
        UserSplash.SetActive(true);
        consentad_untickpanel.SetActive(false);
        //UserSplashScreen();
        consenttad_tickpanel.SetActive(false);
        PlayerPrefs.SetInt("ConsentAd", 1);
        StartCoroutine(WaitForMainMenu());

        //SceneManager.LoadScene (1);
    }
Esempio n. 2
0
    void Consent1Load()
    {
        UserSplash.SetActive(false);
        imagePath1 = Application.streamingAssetsPath + "/" + PlayerPrefs.GetString("GameId") + "ConsentS1.jpg";
        if (Application.platform == RuntimePlatform.Android)
        {
            StartCoroutine(loadConsent1_Image());
        }
        else
        {
            imagePath1 = "file:///" + Application.streamingAssetsPath + "/" + PlayerPrefs.GetString("GameId") + "ConsentS1.jpg";

            StartCoroutine(loadConsent1_Image());
        }
    }
Esempio n. 3
0
    IEnumerator WaitForMainMenu()
    {
        UserSplash.SetActive(true);
        consentad_untickpanel.SetActive(false);
        consenttad_tickpanel.SetActive(false);
        try
        {
            GaminatorAds.Instance.ShowSmartBanner(0);
        }
        catch
        {
            Debug.Log("Pre Splash Screen Fail ShowBigBannerTopLeft");
        }

        yield return(new WaitForSeconds(6f));

        SceneManager.LoadScene(1);
    }