Esempio n. 1
0
    IEnumerator AsyncLoadingWithFade(SceneTransitionControl.TransitionStyle style)
    {
        while (!async.isDone)
        {
            if (async.progress >= 0.9f)
            {
                async.allowSceneActivation = true;
            }

            yield return(null);
        }
    }
Esempio n. 2
0
 private void WaifForAsyncLoadingWithFade(SceneTransitionControl.TransitionStyle style)
 {
     StartCoroutine(AsyncLoadingWithFade(style));
 }