Exemplo n.º 1
0
        public static void CreateAssetData(List <string> assetNames, List <string> assetBundleNames, Dictionary <string, List <string> > result)
        {
            Dictionary <string, AssetUnitData> dic = new Dictionary <string, AssetUnitData> ();

            for (int i = 0; i < assetNames.Count; i++)
            {
                AssetUnitData unit = new AssetUnitData();

                unit.assetBundle = assetBundleNames[i];

                List <string> tmpList = result[assetNames[i]];

                unit.assetBundleDep = tmpList.ToArray();

                dic.Add(assetNames[i], unit);
            }

            SystemIO.SaveSerializeFile(Application.streamingAssetsPath + "/" + dataName, dic);
        }
Exemplo n.º 2
0
        public AssetUnit(string _name)
        {
            name = _name;

            data = AssetManager.Instance.GetData(name);
        }