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); }
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()); } }
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); }