private void UpdateManifest(AssetManifest manifest)
        {
//#if UNITY_EDITOR

//            this.AssetManifest = manifest;
//            this.StartupFiles = new List<RemoteAssetInfo>();
//            this.OnDemandFiles = new List<RemoteAssetInfo>();
//            this.OnGameReadyFiles = new List<RemoteAssetInfo>();
//            ReadManifest();
//            return;
//#endif

            //if its not a NEW manifest, ignore it.
            if (lastManifestVersion > 0 && manifest.ManifestVersion <= lastManifestVersion)
            {
                OnStartupFilesCompleted();
            }
            else
            {
                this.AssetManifest    = manifest;
                this.StartupFiles     = new List <RemoteAssetInfo>();
                this.OnDemandFiles    = new List <RemoteAssetInfo>();
                this.OnGameReadyFiles = new List <RemoteAssetInfo>();
                ReadManifest();
            }
        }
 public static void Init(AssetManifest manifest)
 {
     if (instance == null)
     {
         instance = new RemoteAssetsManager(manifest);
     }
     else
     {
         instance.UpdateManifest(manifest);
     }
 }
 public RemoteAssetsManager(AssetManifest manifest)
 {
     UpdateManifest(manifest);
 }