示例#1
0
    public IBundleLoader Load(VersionBundle item, Action loadComplete, Action loadError)
    {
        if (item == null)
        {
            Debug.LogError("Not found the item");
            return null;
        }

        if (_als.ContainsKey(item.id))
        {
            Debug.LogError("Don't load the same item - " + item.id);
            return _als[item.id];
        }

        _als[item.id] = new BundleLoader(item);
        _als[item.id].Load(loadComplete, loadError);

        return _als[item.id];
    }
示例#2
0
 public BundleLoader(VersionBundle item)
 {
     _versionBundle = item;
 }