public ABUnit GetABUnit(string path) { ABUnit unit = null; for (int i = m_AllAssetDataPackage.Count - 1; i >= 0; --i) { unit = m_AllAssetDataPackage[i].GetABUnit(path); if (unit != null) { break; } } return(unit); }
public AssetDataPackage(SerializeData data, string path) { m_Key = data.key; m_Path = path; m_BuildTime = data.buildTime; m_ABUnit = data.abUnit; if (data.assetDataArray != null) { for (int i = 0; i < data.assetDataArray.Length; i++) { AssetData assetData = data.assetDataArray[i]; AddAssetData(assetData); } } }
public bool AddAssetBundle(string name, string[] depends, string md5, int fileSize, long buildTime) { if (string.IsNullOrEmpty(name)) { return(false); } if (m_ABUnit == null) { m_ABUnit = new ABUnit(name, depends, md5, fileSize, buildTime); } AssetData config = GetAssetData(name); if (config != null) { Debug.LogError("#Already add AssetData"); return(false); } //Debug.LogError("AddAssetBundle:" + name); AddAssetData(new AssetData(name, eResType.kAssetBundle)); return(true); }