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

            Coroutine_LoadUrlTextureFile t_coroutine = new Coroutine_LoadUrlTextureFile();

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

            if (t_coroutine.result.texture_file != null)
            {
                this.result_progress       = 1.0f;
                this.result_asset          = new Asset.Asset(Asset.AssetType.Texture, t_coroutine.result.texture_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 DoLoadUrlTextureFile()
		{
			Coroutine_LoadUrlTextureFile t_coroutine = new Coroutine_LoadUrlTextureFile();
			yield return t_coroutine.CoroutineMain(this,this.request_path,this.request_post_data,this.request_certificate_handler);

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