商店 基本完成

This commit is contained in:
2025-08-20 20:51:17 +08:00
parent 1896b5fab0
commit 77075b2650
4 changed files with 940 additions and 484 deletions

View File

@@ -15,7 +15,7 @@ export class ShopPageComp extends Component {
let items=this.node.getChildByName("daily").getChildByName("items").children
for(let i=0;i<items.length;i++){
let goods=items[i]
goods.getComponent(GoodsComp).update_data(this.daily_goods[i])
goods.getComponent(GoodsComp).update_data(this.daily_goods[i],i)
}
}
update(deltaTime: number) {