/*
         * Looks up assets by ID in the asset store and passes the results to DoneCallback
         */
        internal static AsyncHTTPClient AssetsInfo(List <AssetStoreAsset> assets, AssetStoreAssetsInfo.Callback callback)
        {
            string url = APIUrl("/assets/list");

            foreach (AssetStoreAsset asset in assets)
            {
                url += "&id=" + asset.id;
            }
            // Debug.Log(url);
            AssetStoreAssetsInfo r = new AssetStoreAssetsInfo(callback, assets);

            return(CreateJSONRequest(url, delegate(AssetStoreResponse ar) { r.Parse(ar); }));
        }
Esempio n. 2
0
        internal static AsyncHTTPClient AssetsInfo(List <AssetStoreAsset> assets, AssetStoreResultBase <AssetStoreAssetsInfo> .Callback callback)
        {
            string text = AssetStoreClient.APIUrl("/assets/list");

            foreach (AssetStoreAsset current in assets)
            {
                text = text + "&id=" + current.id.ToString();
            }
            AssetStoreAssetsInfo r = new AssetStoreAssetsInfo(callback, assets);

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