public CriAssetInfo GetAssetInfo(CriAssetType type, string assetPath) { var path = assetPath.ToLower(); var assetInfos = new CriAssetInfo[0]; switch (type) { case CriAssetType.Sound: assetInfos = soundAssets; break; case CriAssetType.Movie: assetInfos = movieAssets; break; } return(assetInfos.FirstOrDefault(x => path == x.AssetPath.ToLower())); }
public CriAssetInfo(CriAssetType assetType, string assetPath, string hash) { this.assetType = assetType; this.assetPath = assetPath; this.hash = hash; }