|
@@ -126,8 +126,8 @@ export class CommonShelve extends ShelveBase {
|
|
|
const pos: Vec3 = v3()
|
|
|
pos.x = (slotId - 1) * (this.uiTrans.width - 10) / 3
|
|
|
// pos.y = layer * Global.Goods_Offset
|
|
|
- const baseY = layer * Global.Goods_Offset
|
|
|
- pos.y = slotId === 1 ? baseY + Global.Goods_Offset * 2 : baseY - 20
|
|
|
+ const baseY = layer * Global.Goods_Offset - 20
|
|
|
+ pos.y = slotId === 1 ? baseY + Global.Goods_Offset * 2 : baseY
|
|
|
layerNode.addChild(goodsNode)
|
|
|
goodsNode.setScale(0.6, 0.6, 0.6)
|
|
|
goodsNode.setPosition(pos)
|