示例#1
0
        public static BundleWebRequest CreateBundleWebRequest(string url, string hash = null)
        {
            BundleWebRequest request = BundleWebRequestPool.Get();

            request.bundleUrl  = url;
            request.hash       = hash;
            request.timeout    = AMSetting.DownloadTimeout;
            request.retryTimes = AMSetting.RequestRetryTimes;
            return(request);
        }
示例#2
0
 public static void ReleaseBundleWebRequest(BundleWebRequest request)
 {
     BundleWebRequestPool.Release(request);
 }