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

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

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