Commit ea501781 authored by 范雪寒's avatar 范雪寒

feat:

parent 8bb814cc
......@@ -157,15 +157,12 @@ cc.Class({
},
refreshCoolCatPosition() {
const cat = cc.find('Canvas/bg/catFrame/CoolCat');
const canvasWidth = cc.find('Canvas').width;
const canvasHeight = cc.find('Canvas').height;
},
jumpToQuestion(questionIdx) {
const audioUrl = this.data.question_arr[questionIdx].question_audio_url;
this.playAudioByUrl(audioUrl);
const questionAudioUrl = this.data.question_arr[questionIdx].question_audio_url;
this.playAudioByUrl(questionAudioUrl);
const box = cc.find('Canvas/bg/box');
box.removeAllChildren();
......
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