Commit f53476a0 authored by 李维's avatar 李维

dev commit

parent 2d9a3a89
......@@ -220,7 +220,9 @@ export class PlayComponent implements OnInit, OnDestroy {
endGame(){
this.g_cartoon.playAudio("xing_xing")
this.showBlingStar(this.g_cartoon.getCartoonElement("bg-wall-star-container").ref, ()=>{
this.g_cartoon.playAudio("gu_zhang")
this.g_cartoon.playAudio("gu_zhang", false, ()=>{
this.stopAllEnd()
})
this.g_cartoon.getCartoonElement("mask-layer").in(()=>{
this.g_enableMapDown = false;
this.showEndPatal()
......@@ -229,6 +231,17 @@ export class PlayComponent implements OnInit, OnDestroy {
})
}
stopAllEnd(){
this.stopAllInterval()
this.stopAllTimeout()
this.m_fishes.forEach(item=>{
item.ref.visible = false
})
this.g_cartoon.getCartoonElement("hand-left").ref.visible = false
this.g_cartoon.getCartoonElement("hand-right").ref.visible = false
this.stopEndPatal()
this.g_cartoon.getCartoonElement("mask-layer").out()
}
initBackground(){
let PA = this.g_cartoon.createCartoonElementImageFunc("bg-wall-l1", "bg_wall", (w, h)=>{
......@@ -1457,7 +1470,6 @@ clapHand(callback?){
this.g_cartoon.getCartoonElement("hand-right").clap()
}
initBlackMask(callback?){
let element = this.g_cartoon.createCartoonElementImage("mask-layer", "_mask_layer_1280_720", this.g_canvasWidth, this.g_canvasHeight, this.g_canvasWidth/2, this.g_canvasHeight/2)
element.ref.visible = false;
......
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