Exemple #1
0
        ///<inheritdoc cref="IVersionCheck"/>
        ///<exception cref="GameFrameworkException">Check 函数还未执行过或还未执行完成 </exception>
        /// <returns></returns>
        public IEnumerable <AssetBundleInfo> GetGroupVersion(string tag)
        {
            if (!_isInitCheck)
            {
                throw new GameFrameworkException("没有执行Check 函数或还未执行完成~");
            }

            var serverABs = ServerVersionInfo.GetGroupAssetBundleInfos(tag);
            var localABs  = LocalVersionInfo.GetGroupAssetBundleInfos(tag);

            return(_chckAssetBundleList(serverABs, localABs));
        }
Exemple #2
0
        public bool IsUpdateGroup(string tag)
        {
            if (!_isInitCheck)
            {
                throw new GameFrameworkException("没有执行Check 函数或还未执行完成~");
            }

            var serverABs = ServerVersionInfo.GetGroupAssetBundleInfos(tag);
            var localABs  = LocalVersionInfo.GetGroupAssetBundleInfos(tag);

            return(_existUpdateAssetBundle(serverABs, localABs));
        }