少年修仙传客户端代码仓库
hch
2025-04-03 c154ac0832fe4379a00d3e1cda700e7d2a7383c7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using UnityEngine;
 
public class AssetBundleInfo
{
 
    public string name = null;
    public Hash128 hash;
    public string[] dependentBundles = null;
 
    public AssetBundleInfo(string bundleName, Hash128 hash128, string[] dependentBundleArray)
    {
        if (AssetVersionUtility.IsOpenDMHunxiao())
        { 
            name = AssetVersionUtility.DecodeFileName(bundleName);
            hash = hash128;
            //dependentBundles 存储 dependentBundleArray 的字符串倒序后存储
            for (int i = 0; i < dependentBundleArray.Length; i++)
            {
                dependentBundleArray[i] = AssetVersionUtility.DecodeFileName(dependentBundleArray[i]);
            }
            dependentBundles = dependentBundleArray;
        }
        else
        {
            name = bundleName;
            hash = hash128;
            dependentBundles = dependentBundleArray;
        }
    }
}