Commit 3432e9d7 authored by zjz1994's avatar zjz1994

Merge branch 'dev' of http://gitlab2.dui88.com/wanghongyuan/xiaoxiaole into dev

parents 0bbfc0b2 8bbcbbe9
...@@ -117,6 +117,7 @@ import { createSandDisAni } from '../effect/createSandDisAni'; ...@@ -117,6 +117,7 @@ import { createSandDisAni } from '../effect/createSandDisAni';
import { getArrowDir, getArrowRotation, fillConveyor, getOneConveyorMask } from '../something/conveyor/conveyorTool'; import { getArrowDir, getArrowRotation, fillConveyor, getOneConveyorMask } from '../something/conveyor/conveyorTool';
import createArrowBg from '../something/conveyor/createArrowBg'; import createArrowBg from '../something/conveyor/createArrowBg';
import doConveyorAI from './doConveyorAI'; import doConveyorAI from './doConveyorAI';
import Rect = eui.Rect;
const aniClass = { const aniClass = {
"BoomAni": BoomAni, "BoomAni": BoomAni,
...@@ -2559,6 +2560,9 @@ export default class MainScene extends Scene { ...@@ -2559,6 +2560,9 @@ export default class MainScene extends Scene {
this.effectContinuityTimes = 1; this.effectContinuityTimes = 1;
if(movieClips["bonusTime"]) { if(movieClips["bonusTime"]) {
playSound(SoundType.bonusTime); playSound(SoundType.bonusTime);
let rect = new Rect(750, 1624, 0x000000);
rect.alpha = 0.6;
this.addChild(rect);
this.addChild(movieClips["bonusTime"]) this.addChild(movieClips["bonusTime"])
movieClips["bonusTime"].gotoAndPlay(1, true) movieClips["bonusTime"].gotoAndPlay(1, true)
setTimeout(() => { setTimeout(() => {
...@@ -2566,6 +2570,9 @@ export default class MainScene extends Scene { ...@@ -2566,6 +2570,9 @@ export default class MainScene extends Scene {
if(movieClips["bonusTime"].parent) { if(movieClips["bonusTime"].parent) {
this.removeChild(movieClips["bonusTime"]) this.removeChild(movieClips["bonusTime"])
} }
if(rect.parent){
this.removeChild(rect);
}
}, 1930) }, 1930)
} else { } else {
this.addChild(this.bonusTime); this.addChild(this.bonusTime);
......
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