Пример #1
0
        private IEnumerator Load(LoaderRequest rRequest)
        {
            yield return(new WaitForSeconds(1.0f));

            rRequest.obj = new GameObject(rRequest.path);
            Debug.LogFormat("Create GameObject: {0}", rRequest.path);
        }
Пример #2
0
        private LoaderRequest Load_Async(string rPath)
        {
            LoaderRequest rRequest = new LoaderRequest(rPath);

            mRequest = rRequest;
            rRequest.Start(Load(rRequest));
            return(rRequest);
        }
Пример #3
0
        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);
        }
Пример #4
0
        public IEnumerator Loading(string rPath)
        {
            LoaderRequest rRequest = Load_Async(rPath);

            yield return(rRequest.Coroutine);
        }