private IEnumerator FadeSceneInCoroutine() { //Fade the GUI elements in a staggered fashion. backgroundFader.Fade(); yield return(new WaitForSeconds(backgroundFader.fadeTime)); textFader.Fade(); yield return(new WaitForSeconds(textFader.fadeTime)); }
public void ShowCredits() { if (currentText == credits) { credits.Fade(); title.Fade(); currentText = title; } else { currentText.Fade(); credits.Fade(); currentText = credits; } }
public void ShowControls() { if (currentText == controls) { controls.Fade(); title.Fade(); currentText = title; } else { currentText.Fade(); controls.Fade(); currentText = controls; } }
private void Start() { fade = FindObjectOfType <Fade>(); currentText = title; currentText.Fade(); }