开始添加横屏UI

This commit is contained in:
2025-05-23 20:47:03 +08:00
parent e0d25affa3
commit 354194358b
31 changed files with 58237 additions and 14257 deletions

View File

@@ -97,10 +97,14 @@ export class Stage extends Laya.Script {
}
}
for (var i=0; i<this.obj_candys.numChildren; i++) {
var candy = this.obj_candys.getChildAt(i).getComponent(Candy);
this.candys.push(candy);
var box = this.obj_candy_labels.getChildAt(i) as Laya.Box
candy.onInit(box, this, this.onClickCandy)
hbox = this.obj_candys.getChildAt(i)
l_hbox = this.obj_candy_labels.getChildAt(i)
for (var j=0; j<hbox.numChildren; j++) {
var candy = hbox.getChildAt(j).getComponent(Candy);
this.candys.push(candy);
var box = l_hbox.getChildAt(j) as Laya.Box
candy.onInit(box, this, this.onClickCandy)
}
}
this.btn_undo.on(Laya.Event.CLICK, this, this.onClickUndo)