Commit 88a1d772 authored by yu's avatar yu

能量石计算

parent 2ec53012
......@@ -193,9 +193,9 @@ export default class layout_cannon extends cc.Component {
bomb.getComponent(dragonBones.ArmatureDisplay).addEventListener(dragonBones.EventObject.LOOP_COMPLETE, () => {
bomb.active = false;
this.rightNum++;
if (this.rightNum == 1) Game.getIns().player.addRight();
pg.audio.playAudioByUrl(data.audioUrl, () => {
if (!Game.getIns().getCurrentPage().checkMore || this.rightNum > 1) {
Game.getIns().player.addRight();
pg.event.emit("game_time_over");
} else {
pg.event.emit("play_laba_audio");
......
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