IEnumerator AsyncLoadingWithFade(SceneTransitionControl.TransitionStyle style) { while (!async.isDone) { if (async.progress >= 0.9f) { async.allowSceneActivation = true; } yield return(null); } }
private void WaifForAsyncLoadingWithFade(SceneTransitionControl.TransitionStyle style) { StartCoroutine(AsyncLoadingWithFade(style)); }