private IEnumerator Load(LoaderRequest rRequest) { yield return(new WaitForSeconds(1.0f)); rRequest.obj = new GameObject(rRequest.path); Debug.LogFormat("Create GameObject: {0}", rRequest.path); }
private LoaderRequest Load_Async(string rPath) { LoaderRequest rRequest = new LoaderRequest(rPath); mRequest = rRequest; rRequest.Start(Load(rRequest)); return(rRequest); }
private async Task <LoaderRequest> Load(string rPath) { LoaderRequest rRequest = new LoaderRequest(rPath); await new WaitForSeconds(1.0f); rRequest.obj = new GameObject(rRequest.path); Debug.LogFormat("Create GameObject: {0}", rRequest.path); return(rRequest); }
public IEnumerator Loading(string rPath) { LoaderRequest rRequest = Load_Async(rPath); yield return(rRequest.Coroutine); }