开始添加横屏UI
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user