Commit cd23ce87 authored by Tt's avatar Tt

52调整

parent 8fe2b528
......@@ -555,6 +555,7 @@ cc.Class({
icon_ex.active = false;
pg.view.visible(pg.view.find(this, "card_group/slider"), false);
this.showCardLayout();
this.setMaoAni("begin");
if (jumpWait) {
pg.view.visible(pg.view.find(this, "card_group/slider"), true);
// pg.view.visible(icon_ex, true);
......@@ -572,6 +573,7 @@ cc.Class({
audioFinished = true;
let time = cc.audioEngine.getDuration(id);
this.showCardAction(time + 1).then(() => {
this.setMaoAni("normal");
this.showSliderAction(1).then(() => {
if (aniFinished && audioFinished) {
this._playing = false;
......@@ -598,6 +600,7 @@ cc.Class({
audioFinished = true;
let time = cc.audioEngine.getDuration(id);
this.showCardAction(time + 1).then(() => {
this.setMaoAni("normal");
this.showSliderAction(1).then(() => {
if (aniFinished && audioFinished) {
this._playing = false;
......@@ -636,10 +639,10 @@ cc.Class({
resolve("");
} else {
this._audio_record = true;
pg.audio.playAudioByUrl(this._cat.record).then(() => {
this._playing = false;
resolve('');
})
// pg.audio.playAudioByUrl(this._cat.record).then(() => {
this._playing = false;
resolve('');
// })
}
});
},
......@@ -839,6 +842,11 @@ cc.Class({
text.color = new cc.Color(nr, ng, nb);
})
},
setMaoAni(aniName) {
let mao_ske = cc.find("mao_ske", this.node);
let ske = mao_ske.getComponent(dragonBones.ArmatureDisplay).playAnimation(aniName);
},
//按钮触发,使用的方法
onTouchRecord() {
this.nextStage();
......@@ -948,6 +956,7 @@ cc.Class({
if (isOver) {
//执行总结束的内容
GameManager.getIns().setState(5);
this.setMaoAni("finish");
this.initLayout()
} else {
this.initSingleData();//刷新当前关卡所使用的的数据
......
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