public IEnumerator displayZone() { switch (newZone) { case "SE": zoneText.text = "Silent Entryhall"; break; case "DP": zoneText.text = "Dead Performance"; break; case "FM": zoneText.text = "Forgotten Mezzanine"; break; case "FK": zoneText.text = "Festered Kiln"; break; case "NB": zoneText.text = "Natural Banquet"; break; case "FL": zoneText.text = "Frigid Loft"; break; case "CD": zoneText.text = "Cavernous Decline"; break; case "DS": zoneText.text = "Departure Sandbox"; break; case "DH": zoneText.text = "Desolate Heart"; break; } //Debug.Log(newZone); StartCoroutine(jukebox.FadeOut(0.6f)); yield return(new WaitForSeconds(1f)); for (float i = 0f; i < 255f; i += 4.25f) { zoneText.color = new Color(255f, 255f, 255f, i / 255f); yield return(new WaitForSeconds(0.025f)); } jukebox.ResumeOverworldSong(); StartCoroutine(jukebox.FadeIn(0.6f)); zoneText.color = new Color(255f, 255f, 255f, 255f); yield return(new WaitForSeconds(1.5f)); StartCoroutine(transitionIn()); yield return(new WaitForSeconds(3f)); for (float i = 255f; i > 0f; i -= 8.5f) { zoneText.color = new Color(255f, 255f, 255f, i / 255f); yield return(new WaitForSeconds(0.005f)); } zoneText.color = new Color(255f, 255f, 255f, 0f); transitioning = false; yield return(null); }