private static Resource[] CollectResources()
        {
            var configPath = ResourceStreamingLocation.GetConfigFullFilePath(ResourceSettings.PLATFORM_DIRECTORY_IOS);
            var configData = CocoData.LoadFromJsonFile <ConfigData> (configPath);

            if (configData == null)
            {
                Debug.Log("ResourceODRCollector->CollectResources: resource config NOT found, will don't use ODR.");
                return(new Resource[0]);
            }

            var resources = new List <Resource> ();

            foreach (var locationData in configData.LocationDatas)
            {
                if (locationData.Location != LocationType.ODR)
                {
                    continue;
                }

                var odrTag    = locationData.Id;
                var directory = ResourceODRLocation.GetVirtualTagPath(odrTag);
                foreach (var assetBundleData in locationData.AssetBundleDatas)
                {
                    CollectAssetBundle(assetBundleData, directory, odrTag, resources);
                }
            }

            return(resources.ToArray());
        }
        protected override void InitMainRequest()
        {
            _mainOdrRequest              = ResourceODRLocation.PreloadAsync(new[] { _odrTag });
            _mainOdrRequest.OnCompleted += OnODRRequestCompleted;

            ResourceDebug.Log("{0}->InitMainRequest: odrTag [{1}]", GetType().Name, _odrTag);
        }
 private string GetAssetBundleResourcePath(string assetBundleName)
 {
     return(ResourceODRLocation.GetResourcePath(_odrTag, assetBundleName));
 }
 public LocationODRLoadRequest(LocationHolder holder, string odrTag) : base(holder)
 {
     _odrTag     = odrTag;
     _odrRequest = ResourceODRLocation.PreloadAsync(new[] { odrTag });
 }