Commit 8ebccd0b authored by liujiangnan's avatar liujiangnan

fix: 不能玩的问题

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