/** 初始化坑位 */
private initCellList(): void {
this.cellList.itemRender = CellItem;
this.cellList.vScrollBarSkin = "";
this.cellList.repeatX = BattleMgr.Ins.Model.crosCel;
this.cellList.repeatY = BattleMgr.Ins.Model.maxCell / BattleMgr.Ins.Model.crosCel;
this.cellList.array = BattleMgr.Ins.CellDatas;
}
这样生成出来的item位置quanbu全部集中在左上角
附件:
MergeTower.rar