Esempio n. 1
0
        /** 実行。ロードストリーミングアセット。バイナリファイル。
         */
        private System.Collections.IEnumerator DoLoadStreamingAssetsBinaryFile()
        {
            //request_pathは相対パス。
            Fee.File.Path t_path = Fee.File.Path.CreateStreamingAssetsPath(this.request_path);

            Coroutine_LoadUrlBinaryFile t_coroutine = new Coroutine_LoadUrlBinaryFile();

            yield return(t_coroutine.CoroutineMain(this, t_path, null, null));

            if (t_coroutine.result.binary_file != null)
            {
                this.result_progress       = 1.0f;
                this.result_asset          = new Asset.Asset(Asset.AssetType.Binary, t_coroutine.result.binary_file);
                this.result_responseheader = t_coroutine.result.responseheader;
                this.result_type           = ResultType.Asset;
                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;
            }
        }
Esempio n. 2
0
		/** 実行。ロードURL。バイナリファイル。
		*/
		private System.Collections.IEnumerator DoLoadUrlBinaryFile()
		{
			Coroutine_LoadUrlBinaryFile t_coroutine = new Coroutine_LoadUrlBinaryFile();
			yield return t_coroutine.CoroutineMain(this,this.request_path,this.request_post_data,this.request_certificate_handler);

			if(t_coroutine.result.binary_file != null){
				this.result_progress = 1.0f;
				this.result_asset = new Asset.Asset(Asset.AssetType.Binary,t_coroutine.result.binary_file);
				this.result_responseheader = t_coroutine.result.responseheader;
				this.result_type = ResultType.Asset;
				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;
			}
		}