示例#1
0
        /** 実行。ロードストリーミングアセット。パック。
         */
        private System.Collections.IEnumerator DoLoadStreamingAssetsPack()
        {
            Coroutine_LoadPack t_coroutine = new Coroutine_LoadPack();

            yield return(t_coroutine.CoroutineMain(this, this.request_path, null, null, true, this.request_data_version));

            if (t_coroutine.result.pack != null)
            {
                this.result_progress = 1.0f;
                this.result_pack     = t_coroutine.result.pack;
                this.result_type     = ResultType.Pack;
                yield break;
            }
            else
            {
                this.result_progress    = 1.0f;
                this.result_errorstring = t_coroutine.result.errorstring;
                this.result_type        = ResultType.Error;
                yield break;
            }
        }
示例#2
0
        /** 実行。ダウンロード。パック。
         */
        private System.Collections.IEnumerator DoLoadUrlPack()
        {
            Coroutine_LoadPack t_coroutine = new Coroutine_LoadPack();

            yield return(t_coroutine.CoroutineMain(this, this.request_path, this.request_post_data, this.request_certificate_handler, false, this.request_data_version));

            if (t_coroutine.result.pack != null)
            {
                this.result_progress       = 1.0f;
                this.result_pack           = t_coroutine.result.pack;
                this.result_responseheader = t_coroutine.result.responseheader;
                this.result_type           = ResultType.Pack;
                yield break;
            }
            else
            {
                this.result_progress       = 1.0f;
                this.result_errorstring    = t_coroutine.result.errorstring;
                this.result_responseheader = t_coroutine.result.responseheader;
                this.result_type           = ResultType.Error;
                yield break;
            }
        }