コード例 #1
0
        internal static AsyncHTTPClient BuildPackage(AssetStoreAsset asset, BuildPackageResult.Callback callback)
        {
            string url = APIUrl("/content/download/" + asset.packageID);
            // Debug.Log(url);
            BuildPackageResult r = new BuildPackageResult(asset, callback);

            return(CreateJSONRequest(url, delegate(AssetStoreResponse ar) { r.Parse(ar); }));
        }
コード例 #2
0
        internal static AsyncHTTPClient BuildPackage(AssetStoreAsset asset, AssetStoreResultBase <BuildPackageResult> .Callback callback)
        {
            string             url = AssetStoreClient.APIUrl("/content/download/" + asset.packageID.ToString());
            BuildPackageResult r   = new BuildPackageResult(asset, callback);

            return(AssetStoreClient.CreateJSONRequest(url, delegate(AssetStoreResponse ar)
            {
                r.Parse(ar);
            }));
        }