清理smc
This commit is contained in:
@@ -23,12 +23,7 @@ export class ShopHomeComp extends CCComp {
|
||||
}
|
||||
get_items(){
|
||||
let goodsnode = this.node.getChildByName("goods").getChildByName("view").getChildByName("content")
|
||||
goodsnode.getComponent(UITransform).height=Math.floor(smc.goods.length/4*240)+50
|
||||
console.log("smc.goods",smc.goods)
|
||||
for (let x = 0; x < smc.goods.length; x++) {
|
||||
let goods=ecs.getEntity<Goods>(Goods)
|
||||
goods.load(x,goodsnode)
|
||||
}
|
||||
|
||||
}
|
||||
/** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */
|
||||
reset() {
|
||||
|
||||
Reference in New Issue
Block a user