Commit 81b80e23 authored by Chen Jiping's avatar Chen Jiping

fix:修复猫咪待中断无法再次播放的问题

parent 03a73ffa
...@@ -363,6 +363,7 @@ cc.Class({ ...@@ -363,6 +363,7 @@ cc.Class({
this.playAudioByUrl(wordArr[i].audioUrl, ()=>{ this.playAudioByUrl(wordArr[i].audioUrl, ()=>{
this._cantouch = true; this._cantouch = true;
this._showStandby = false;
state.stop(); state.stop();
this.playAni('normal', 0); this.playAni('normal', 0);
...@@ -413,6 +414,8 @@ cc.Class({ ...@@ -413,6 +414,8 @@ cc.Class({
state.stop(); state.stop();
this.playAni('normal', 0); this.playAni('normal', 0);
this._showStandby = false;
}); });
} }
...@@ -511,13 +514,14 @@ cc.Class({ ...@@ -511,13 +514,14 @@ cc.Class({
const rota = () => { const rota = () => {
cc.tween(picNode) cc.tween(picNode)
.to(0.3, { angle: rotation - 15 }) .to(0.1, { angle: rotation - 15 })
.to(0.3, { angle: rotation }) .to(0.1, { angle: rotation })
.to(0.3, { angle: rotation + 15 }) .to(0.1, { angle: rotation + 15 })
.to(0.3, { angle: rotation }) .to(0.1, { angle: rotation })
.call(() => { .call(() => {
if(times > 2){ if(times > 2){
this._cantouch = true; this._cantouch = true;
this._showStandby = false;
return; return;
} }
......
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