Ejemplo n.º 1
0
    private IEnumerator SwitchSceneProcess(Action onFinish)
    {
        initializeNestScene?.Invoke();

        while (!currentScene.IsSceneLoaded())
        {
            yield return(new WaitForEndOfFrame());
        }

        yield return(new WaitForEndOfFrame());

        onFinish();
    }