Commit a59f560b authored by limingzhe's avatar limingzhe

fix: debug

parent ae8d4aaf
......@@ -1186,21 +1186,23 @@ cc.Class({
},
startTiming() {
const cw = window.courseware;
if (!cw || !cw.startTiming) {
return;
}
cw.startTiming();
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
middleLayer.getComponent('middleLayer').startTiming();
}
},
showResultPanel() {
const cw = window.courseware;
if (!cw || !cw.showResultPanel) {
return;
console.log('show resultPanel ')
console.log('show resultPanel rankingType ' + this.data.rankingType)
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({
star.opacity = 255;
const time = 60;
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(() => {
this.starPoolArr.push(star);
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