Exemple #1
0
    public IEnumerator FinishLoad(T data)
    {
        this.data = data;
        yield return(FinishLoad(this, data));

        yield return(asyncLoad?.FinishLoad(data));
    }
Exemple #2
0
    protected IEnumerator FinishLoad(byte[] data)
    {
        yield return(ConvertData(data));

        isInProgress = false;

        yield return(asyncLoad?.FinishLoad(asset));

        loadingListener?.End();
    }
Exemple #3
0
    public IEnumerator LoadAsyncScene(string name, LoadSceneMode sceneMode, AsyncLoad <AsyncOperation> processor)
    {
        AsyncOperation asyncLoad = SceneManager.LoadSceneAsync(name, sceneMode);

        while (asyncLoad?.progress < 0.9f)
        {
            yield return(processor?.ProgressLoad(asyncLoad, asyncLoad?.progress.ToString()));
        }

        yield return(processor?.ProgressLoad(asyncLoad, asyncLoad?.progress.ToString()));

        yield return(processor?.FinishLoad(asyncLoad));
    }