Commit ed1ffbec authored by limingzhe's avatar limingzhe

fix: debug

parent 134d8b12
......@@ -675,10 +675,10 @@ initMask() {
this.isCheckPage = isCheckPage;
this.getPhotoData((data) => {
this.photoEnd(data);
}, isCheckPage);
return;
// this.getPhotoData((data) => {
// this.photoEnd(data);
// }, isCheckPage);
// return;
const cw = window.courseware;
if (!cw || !cw.openOsmoHandwriting) {
......@@ -1889,8 +1889,8 @@ showStartLight() {
const animNode = this.curQues.starAnimaArr[0];
console.log('animNode: ', animNode);
playAudio(animNode.audioClip, () => {
// this.testingFinger();
this.testingFinger();
this.curQues.starAnimaArr = null;
// this.curQuesVideoPlayEnd();
})
......@@ -2766,15 +2766,15 @@ showStartLight() {
// if (true) {
this.setOneAnswerDataOption(colorDot, answerData);
console.log('answerData:' , answerData);
this.showOptionAnswer(answerData);
// this.setOneAnswerDataOption(colorDot, answerData);
// console.log('answerData:' , answerData);
// this.showOptionAnswer(answerData);
// } else {
// this.setOneAnswerDataStar(colorDot, answerData);
// console.log('answerData:' , answerData);
// this.showStarAnswer(answerData);
this.setOneAnswerDataStar(colorDot, answerData);
console.log('answerData:' , answerData);
this.showStarAnswer(answerData);
// }
......@@ -2926,8 +2926,29 @@ showStartLight() {
},
showStar(animaNode) {
showStar(animNode) {
console.log('show Star');
if (animNode.isShowEnd) {
return;
}
animNode.isShowEnd = true;
const rectNode = animNode.rectNode;
this.playStarAnim(rectNode);
playAudio(this.rightClip, () => {
// this.playNextPageAudio();
if(this.isDestroy) {
return;
}
this.curQuesVideoPlayEnd();
})
this.stopTesting();
},
......@@ -3753,6 +3774,8 @@ showStartLight() {
}
animaNode.rectNode = rectNode;
rectNode.addComponent(cc.Button);
rectNode.on('click', () => {
if (rectNode.isClicked) {
......@@ -3762,28 +3785,17 @@ showStartLight() {
console.log('clicked');
// if (animaNode.audioClip) {
// cc.audioEngine.stopAllEffects();
// cc.director.emit('STOP_ALL_AUDIO')
// cc.audioEngine.playEffect(animaNode.audioClip, false, 0.8);
// }
this.playStarAnim(rectNode);
playAudio(this.rightClip, () => {
// this.playNextPageAudio();
if(this.isDestroy) {
return;
}
this.curQuesVideoPlayEnd();
})
// delayCall(1, () => {
// this.playStarAnim(rectNode);
// playAudio(this.rightClip, () => {
// // this.playNextPageAudio();
// if(this.isDestroy) {
// return;
// }
// this.curQuesVideoPlayEnd();
// })
});
return animaNode;
......
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