Esempio n. 1
0
        public AssetBundle Load(string _name, Action <AssetBundle> _callBack)
        {
            AssetBundleManagerUnit unit;

            if (!dic.TryGetValue(_name, out unit))
            {
                unit = new AssetBundleManagerUnit(_name);

                dic.Add(_name, unit);
            }

            return(unit.Load(_callBack));
        }
Esempio n. 2
0
        public void Load(string _name, Action <AssetBundle, string> _callBack)
        {
            AssetBundleManagerUnit unit;

            if (!dic.ContainsKey(_name))
            {
                unit = new AssetBundleManagerUnit(_name);

                dic.Add(_name, unit);
            }
            else
            {
                unit = dic [_name];
            }

            unit.Load(_callBack);
        }