Commit 20073fe3 authored by 张世斌's avatar 张世斌

1.修复bug

parent c9510c03
...@@ -847,7 +847,7 @@ ...@@ -847,7 +847,7 @@
"__id__": 14 "__id__": 14
}, },
"_children": [], "_children": [],
"_active": false, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 16 "__id__": 16
......
...@@ -206,7 +206,8 @@ cc.Class({ ...@@ -206,7 +206,8 @@ cc.Class({
// this.playAudioByName('click'); // this.playAudioByName('click');
// }); // });
// } // }
this.paint.on("click",()=>{ this.paint.on("click",async ()=>{
await asyncDelay(0.5);
if (this._can_tap != true) if (this._can_tap != true)
return; return;
this._can_tap=false; this._can_tap=false;
...@@ -1414,6 +1415,10 @@ cc.Class({ ...@@ -1414,6 +1415,10 @@ cc.Class({
// let answers = info.answers.split(''); // let answers = info.answers.split('');
// let words = 'aAcBaCbA'.split(''); // let words = 'aAcBaCbA'.split('');
// let answers = '0147'.split(''); // let answers = '0147'.split('');
this.color_selector.active = true;
// this.color_selector.x = this.color_buttons[0].x;
// this.color_selector.y = this.color_buttons[0].y;
this._color = this.getColor("f8ed21");
let spriteFrame=await this.getSpriteFrimeByUrl(this.data.bg); let spriteFrame=await this.getSpriteFrimeByUrl(this.data.bg);
let bg1=this.paint.getChildByName("alligator_img"); let bg1=this.paint.getChildByName("alligator_img");
......
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