IEnumerator IntroTimeline() { fadeSystem.soundFadeIn(audioSource, 10f); yield return(new WaitForSeconds(1.5f)); //fadeSystem.textFadeOut(title,5f); fadeSystem.textFadeOutRetro(title, 0.1f, 0.5f); yield return(new WaitForSeconds(2f)); fadeSystem.imageFadeOutRetro(startButton, 0.1f, 0.25f); //fadeSystem.textFadeOutRetro(startButton,0.1f,0.1f); fadeSystem.imageFadeOutRetro(exitButton, 0.1f, 0.25f); //fadeSystem.textFadeOutRetro(exitButton,0.1f,0.1f); }
public void GotoTitle() { fadeSystem.imageFadeOutRetro(fadeImage, 0.1f, 0.25f); StartCoroutine(waitThenCallback(3f, () => { SceneManager.LoadScene("Title"); })); }