public static DownloadManifest Get()
 {
     if (s_downloadManifest == null)
     {
         s_downloadManifest = new DownloadManifest();
         s_downloadManifest.Load();
     }
     return(s_downloadManifest);
 }
Example #2
0
    public static string BundleURL(string fileName)
    {
        string remoteUri = m_remoteUri;

        if ((MobileDeviceLocale.GetCurrentRegionId() == Network.BnetRegion.REGION_CN) && (m_remoteUriCNIndex != GetTryCount()))
        {
            remoteUri = string.Format(m_remoteUriCN, "0" + m_remoteUriCNIndex.ToString());
        }
        return(string.Format("{0}{1}/{2}", remoteUri, DownloadManifest.Get().HashForBundle(fileName), fileName));
    }