Esempio n. 1
0
    /** 获取部件加载器 */
    private AssetPoolLoadTool getPartLoadTool(int type)
    {
        AssetPoolLoadTool tool = _partLoadToolDic.get(type);

        if (tool == null)
        {
            _partLoadToolDic.put(type, tool = new AssetPoolLoadTool(AssetPoolType.UnitPart));
        }

        return(tool);
    }
Esempio n. 2
0
    /** 设置部件 */
    public void setPart(int type, int partID)
    {
        //空部件不处理
        if (partID <= 0)
        {
            return;
        }

        _partDic.put(type, partID);

        _partReady.remove(type);

        AssetPoolLoadTool tool = getPartLoadTool(type);

        AvatarPartConfig config = AvatarPartConfig.get(type, partID);

        tool.loadOne(config.sourceT, obj => partLoadOver(type, partID, obj));
    }
Esempio n. 3
0
 public virtual void construct()
 {
     _loadTool = new AssetPoolLoadTool(AssetPoolType.UnitModel, loadOver, null);
 }
Esempio n. 4
0
 public override void construct()
 {
     _modelLoadTool = new AssetPoolLoadTool(AssetPoolType.UnitModel, modelLoadOver, null);
 }