Пример #1
0
        /// <summary>
        /// 是否需要从远端更新下载
        /// </summary>
        /// <param name="location">资源的定位地址</param>
        public static bool IsNeedDownloadFromRemote(string location)
        {
            DebugCheckInitialize();
            AssetInfo assetInfo = ConvertLocationToAssetInfo(location, null);

            if (assetInfo.IsInvalid)
            {
                YooLogger.Warning(assetInfo.Error);
                return(false);
            }

            BundleInfo bundleInfo = _bundleServices.GetBundleInfo(assetInfo);

            if (bundleInfo.LoadMode == BundleInfo.ELoadMode.LoadFromRemote)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }