IEnumerator nextLevel(float waitTieme) { donenCember.GetComponent <dondurme>().enabled = false; AnaCember.GetComponent <anacemberkod>().enabled = false; yield return(new WaitForSeconds(waitTieme)); SceneManager.LoadScene(int.Parse(SceneManager.GetActiveScene().name) + 1 + ""); }
IEnumerator yeniLevel() { donenCember.GetComponent <Dondurme>().enabled = false; anaCember.GetComponent <AnaCember>().enabled = false; yield return(new WaitForSeconds(0.5f)); if (kontrol) { animator.SetTrigger("yenilevel"); yield return(new WaitForSeconds(1.5f)); SceneManager.LoadScene(int.Parse(SceneManager.GetActiveScene().name) + 1); } }