public void EnableFinishScreen() { PlaySound(); SaveLvl(); GameMain.SetActive(false); if (isEndBiome) { Ads.Instance.ShowReward(); StartCoroutine(ShowEndBiome()); } else { Ads.Instance.ShowInterstitial(); if (PlayerPrefs.GetString("transitions") == "auto") { TransitionsMenu.Instance.TransitionScene(nameNextLvl); } else { Finish.SetActive(true); } } }
IEnumerator ShowEndBiome() { endBiomeImg.SetActive(true); yield return(new WaitForSeconds(3f)); endBiomeImg.SetActive(false); if (PlayerPrefs.GetString("transitions") == "auto") { TransitionsMenu.Instance.TransitionScene(nameNextLvl); } else { Finish.SetActive(true); } }