IEnumerator waitmethod() { yield return(new WaitForSeconds(1f)); Adscontroller.showads(); timeattackpanel.SetActive(true); }
IEnumerator waitingmethod() { yield return(new WaitForSeconds(1.5f)); if (SceneManagement.classic) { Time.timeScale = 0f; Adscontroller.showads(); scorepanel.SetActive(true); playgamecontroller.posttoleaderboard(Score.inst.score); } if (SceneManagement.timeattack || (SceneManagement.dash && outcount < 3)) { Mainplayer.transform.position = Mainplayer.transform.position + new Vector3(0, 0, 2f); playerrender.enabled = true; trailRenderer.enabled = true; isalive = true; StartCoroutine(waitingmethod2()); } if (SceneManagement.dash && outcount >= 3) { Adscontroller.showads(); dashscorepanel.SetActive(true); isalive = false; } }
IEnumerator waitmethod() { yield return(new WaitForSeconds(2)); Adscontroller.showads(); if (timer > PlayerPrefs.GetFloat("dashscore", 0)) { PlayerPrefs.SetFloat("dashscore", timer); } dashscorepanel.SetActive(true); Time.timeScale = 0f; }