public IEnumerator FinishLoad(T data) { this.data = data; yield return(FinishLoad(this, data)); yield return(asyncLoad?.FinishLoad(data)); }
protected IEnumerator FinishLoad(byte[] data) { yield return(ConvertData(data)); isInProgress = false; yield return(asyncLoad?.FinishLoad(asset)); loadingListener?.End(); }
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)); }