Commit a59f560b authored by limingzhe's avatar limingzhe

fix: debug

parent ae8d4aaf
...@@ -1186,21 +1186,23 @@ cc.Class({ ...@@ -1186,21 +1186,23 @@ cc.Class({
}, },
startTiming() { startTiming() {
const cw = window.courseware;
if (!cw || !cw.startTiming) {
return;
}
cw.startTiming();
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
middleLayer.getComponent('middleLayer').startTiming();
}
}, },
showResultPanel() { showResultPanel() {
const cw = window.courseware; console.log('show resultPanel ')
if (!cw || !cw.showResultPanel) { console.log('show resultPanel rankingType ' + this.data.rankingType)
return; console.log('show resultPanel score ' + this.score)
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
middleLayer.getComponent('middleLayer').showResultLayer(this.data.rankingType, this.score);
} }
cw.showResultPanel(null, this.score);
}, },
...@@ -1415,7 +1417,7 @@ cc.Class({ ...@@ -1415,7 +1417,7 @@ cc.Class({
star.opacity = 255; star.opacity = 255;
const time = 60; const time = 60;
cc.tween(star) cc.tween(star)
.by(time, {x: targetPos.x, y: targetPos.y, rotation: rSpeed * edgeLen}) .by(time, {x: targetPos.x, y: targetPos.y, angle: -rSpeed * edgeLen})
.call(() => { .call(() => {
this.starPoolArr.push(star); this.starPoolArr.push(star);
star.opacity = 0; star.opacity = 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