/// <summary> /// 初始化函数 /// </summary> public void init() { //读取本地资源包信息 string fileName = Application.persistentDataPath + "/" + ConstString.sAssetBundleInfoXML; AssetBundleXMLUtils.loadLocalInfo(ref m_LocalAssetBundleInfos, fileName); //资源包名称归类 InitPathInfo(); }
public AssetBundleDownloader(string assetBundleInfo, string serverPath) { if (string.IsNullOrEmpty(assetBundleInfo)) { m_IsDone = true; m_Error = null; m_Progress = 1; return; } //解析字符串 parseInfo(assetBundleInfo, serverPath); //读取本地资源包信息 string fileName = Application.persistentDataPath + "/" + ConstString.sAssetBundleInfoXML; AssetBundleXMLUtils.loadLocalInfo(ref m_LocalAssetBundleInfos, fileName); //过滤出需要更新的资源包 selectAssetBudlesForUpdate(); }