Пример #1
0
 private static void Upload(string path, string filepath, AssetStoreAPI.DoneCallback callback, AssetStoreClient.ProgressCallback progress = null)
 {
     AssetStoreClient.Pending pending = AssetStoreClient.CreatePendingUpload(path, path, filepath, delegate(AssetStoreResponse resp)
     {
         string errorMessage = null;
         JSONValue jsonvalue;
         AssetStoreAPI.Parse(resp, out errorMessage, out jsonvalue);
         callback(errorMessage);
     });
     pending.progressCallback = progress;
 }