示例#1
0
        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()));
        }
示例#2
0
 public CriAssetInfo(CriAssetType assetType, string assetPath, string hash)
 {
     this.assetType = assetType;
     this.assetPath = assetPath;
     this.hash      = hash;
 }