private IEnumerator FadeAndLoad() { fadeScript.StartFade(true); while (!fadeScript.HasFaded()) { yield return(new WaitForSeconds(0.1f)); } yield return(new WaitForSeconds(0.5f)); fadeScript.StartFade(false); while (!fadeScript.HasFaded()) { yield return(new WaitForSeconds(0.1f)); } SceneManager.LoadScene(versionInitialScene[(int)version]); }