Пример #1
0
        /** 実行。ロードストリーミングアセット。テキストファイル。
         */
        private System.Collections.IEnumerator DoLoadStreamingAssetsTextFile()
        {
            //request_pathは相対パス。
            Fee.File.Path t_path = Fee.File.Path.CreateStreamingAssetsPath(this.request_path);

            Coroutine_LoadUrlTextFile t_coroutine = new Coroutine_LoadUrlTextFile();

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

            if (t_coroutine.result.text_file != null)
            {
                this.result_progress       = 1.0f;
                this.result_asset          = new Asset.Asset(Asset.AssetType.Text, t_coroutine.result.text_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;
            }
        }
Пример #2
0
		/** 実行。ロードURL。テキストファイル。
		*/
		private System.Collections.IEnumerator DoLoadUrlTextFile()
		{
			Coroutine_LoadUrlTextFile t_coroutine = new Coroutine_LoadUrlTextFile();
			yield return t_coroutine.CoroutineMain(this,this.request_path,this.request_post_data,this.request_certificate_handler);

			if(t_coroutine.result.text_file != null){
				this.result_progress = 1.0f;
				this.result_asset = new Asset.Asset(Asset.AssetType.Text,t_coroutine.result.text_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;
			}
		}