Commit 8ebccd0b authored by liujiangnan's avatar liujiangnan

fix: 不能玩的问题

parent b0e4919a
......@@ -505,11 +505,9 @@ export class PlayComponent implements OnInit, OnDestroy {
this.playAudio('tip', true);
setTimeout(() => {
if (shape.audio) {
shape.audio.play();
}
}, 500);
if (shape.audio) {
shape.audio.play();
}
shape.end = true;
......@@ -815,10 +813,6 @@ export class PlayComponent implements OnInit, OnDestroy {
this.showOneLight(rect);
// setTimeout(() => {
// this.hideLight();
// }, 2000);
const r = rect.getBoundingBox();
const pos = {x: r.x + r.width / 2, y: r.y + r.height / 2};
showPopParticle(this.images.get('star'), pos, this.bgLayer, 30,
......@@ -892,9 +886,9 @@ export class PlayComponent implements OnInit, OnDestroy {
hideItem(light, 0.5, () => {
light.visible = false;
setTimeout(() => {
// setTimeout(() => {
this.showRandomLight();
}, 200);
// }, 200);
});
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