Commit 8bb814cc authored by 范雪寒's avatar 范雪寒

feat: onHomeworkFinish

parent a0a06131
...@@ -161,17 +161,6 @@ cc.Class({ ...@@ -161,17 +161,6 @@ cc.Class({
const canvasWidth = cc.find('Canvas').width; const canvasWidth = cc.find('Canvas').width;
const canvasHeight = cc.find('Canvas').height; const canvasHeight = cc.find('Canvas').height;
console.log('canvasWidth = ' + canvasWidth);
console.log('canvasHeight = ' + canvasHeight);
let monster = 100;
let hero = 100;
setInterval(() => {
monster = monster * 1.05;
hero = hero + 5;
console.log(Math.round(monster * 100) / 100);
console.log(Math.round(hero * 100) / 100);
}, 1000);
}, },
jumpToQuestion(questionIdx) { jumpToQuestion(questionIdx) {
...@@ -381,6 +370,8 @@ cc.Class({ ...@@ -381,6 +370,8 @@ cc.Class({
}, },
showNextBtn() { showNextBtn() {
onHomeworkFinish();
const btnNext = cc.find('Canvas/bg/btnNext'); const btnNext = cc.find('Canvas/bg/btnNext');
btnNext.active = true; btnNext.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