IEnumerator CrossFadeDayPanel() { yield return(new WaitForSeconds(rampUpTimeDuration)); float crossFadeDuration = 3.0f; dayText.CrossFadeAlpha(0.0f, crossFadeDuration, false); DayPanel.GetComponent <Image>().CrossFadeAlpha(0.0f, crossFadeDuration, false); yield return(new WaitForSeconds(crossFadeDuration)); DayPanel.SetActive(false); }