Exemplo n.º 1
0
        public void Start()
        {
            m_start = true;
            var cacheData = CacheManager.TryGetCache(assetBundleName);

            if (!cacheData.canUse)                                                           //判断ab是否已经加载防止同步加载
            {
                url         = ResourcesLoader.GetAssetBundleDownloadingURL(assetBundleName); // set full url
                url         = CUtils.GetAndroidABLoadPath(url);
                m_abRequest = AssetBundle.LoadFromFileAsync(url);
                CacheManager.SetCacheDataLoding(assetBundleName);//修改为loading状态
            }
        }