public void NextLevel() { playing = false; CancelInvoke(); level += 1; score += level * levelPointValue; tm.LoadInventory(); playerScript.ResetMe(); kidSpawner.PrepareLevel(level); if (level == 1) { tutorialScreen.SetActive(false); gameScreen.SetActive(true); StartSetup(); } else if (level == 12) { GameOver("The sun began to rise, and the old vampire went to sleep, grumbling about another successful year."); } else { levelTransitionScreen.SetActive(true); Text hoursLeftText = GameObject.Find("HoursLeftText").GetComponent <Text>(); hoursLeftText.text = "Hours Left: "; hoursLeftText.text += (12 - (level - 2)); Invoke("StartSetup", 2); } }