Commit 5b263e03 authored by limingzhe's avatar limingzhe

fix: debug

parent 15855c76
...@@ -1924,6 +1924,12 @@ cc.Class({ ...@@ -1924,6 +1924,12 @@ cc.Class({
if (colorRectCheckItem.isShowEnd) { if (colorRectCheckItem.isShowEnd) {
return; return;
} }
colorRectCheckItem.hitCount++;
if (colorRectCheckItem.hitCount < 3) {
return;
}
colorRectCheckItem.isShowEnd = true; colorRectCheckItem.isShowEnd = true;
console.log(" in showColorAnim 2"); console.log(" in showColorAnim 2");
...@@ -1986,8 +1992,14 @@ cc.Class({ ...@@ -1986,8 +1992,14 @@ cc.Class({
const key = (this.colorRectCheckArr[i].data.index + 1).toString(); const key = (this.colorRectCheckArr[i].data.index + 1).toString();
if (!colorRectCheckArr[i].hitCount) {
colorRectCheckArr[i].hitCount = 0;
}
if (answerData[key]) { if (answerData[key]) {
this.showColorAnim(answerData[key]); this.showColorAnim(answerData[key]);
} else {
colorRectCheckArr[i].hitCount = 0;
} }
} }
......
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