Commit 571ee067 authored by 杨一航's avatar 杨一航

feat: 反馈调整

parent 8d8b6143
......@@ -119,7 +119,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.cover.active = false;
this.btn_end.active = false;
this.dragRoot.children.forEach((val) => {
val.removeAllChildren();
let box = val.getChildByName("box");
box && (box.parent = null);
});
this.rect.removeAllChildren();
this.boyNode.getComponent(Boy).playtalk(-1);
......@@ -199,10 +200,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
cc.log(keyMap)
for (let i = 0; i < this.dragData.length; ++i) {
list[i].removeAllChildren();
let itemInfo = this.dragData[i];
let key = itemInfo.text
let dragNode = cc.instantiate(this.dragObj);
dragNode.name = "box"
dragNode.x = 0;
dragNode.y = 0;
dragNode.parent = list[i];
......@@ -242,6 +243,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.boyNode.getComponent(Boy).playNormal();
this.btn_end.active = true;
this.btn_restart.active = true;
this.cover.active = true;
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment