private IEnumerator LoadSceneAsyncCoroutine(int sceneToLoadIndex) { yield return(new WaitForSeconds(transitionScreen.StartIn())); AsyncOperation asyncLoad = SceneManager.LoadSceneAsync(sceneToLoadIndex); asyncLoad.allowSceneActivation = true; while (asyncLoad.isDone == false) { yield return(null); } yield return(new WaitForSeconds(.4f)); transitionScreen.StartOut(); }