Commit 6c32f508 authored by 李维's avatar 李维

Bug fix

parent 022ef2ad
...@@ -626,7 +626,15 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -626,7 +626,15 @@ export class PlayComponent implements OnInit, OnDestroy {
this.g_enableMapUp = true; this.g_enableMapUp = true;
return; return;
} }
if(!this.m_elementDraged) {
this.g_enableMapUp = true;
return;
}
if(this.m_currentQuestionIndex != element.questionIndex) { if(this.m_currentQuestionIndex != element.questionIndex) {
this.g_cartoon.stopAllAudio()
this.g_cartoon.playAudio("cuowu")
this.g_enableMapUp = true; this.g_enableMapUp = true;
return; return;
} }
...@@ -640,6 +648,9 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -640,6 +648,9 @@ export class PlayComponent implements OnInit, OnDestroy {
this.g_cartoon.playAudio("sm-choice-correct") this.g_cartoon.playAudio("sm-choice-correct")
break; break;
} }
} else {
this.g_cartoon.stopAllAudio()
this.g_cartoon.playAudio("cuowu")
} }
} }
......
...@@ -72,6 +72,7 @@ const localAudios = { ...@@ -72,6 +72,7 @@ const localAudios = {
'sm-go': 'assets/default/audio/sm-go.mp3', 'sm-go': 'assets/default/audio/sm-go.mp3',
'sm-ready': 'assets/default/audio/sm-ready.mp3', 'sm-ready': 'assets/default/audio/sm-ready.mp3',
'cuowu': 'assets/play/sound/cuowu.mp3'
}; };
const multiSizeBackground = { const multiSizeBackground = {
......
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