结算音效和暂停弹窗
This commit is contained in:
parent
b1168aefcd
commit
1d409fcae0
File diff suppressed because it is too large
Load Diff
|
@ -150,7 +150,9 @@
|
|||
},
|
||||
"fangxiang": null,
|
||||
"build": null,
|
||||
"win": null,
|
||||
"win": {
|
||||
"__uuid__": "9f2906df-601d-4dfa-a561-31745b62c9dd"
|
||||
},
|
||||
"lose": null,
|
||||
"anniu_Big": {
|
||||
"__uuid__": "7362cac7-12b5-4704-af6d-5b110c5e9fcf"
|
||||
|
|
|
@ -3028,6 +3028,7 @@ export default class MapConroler extends cc.Component {
|
|||
|
||||
//结算界面
|
||||
Settlement() {
|
||||
cc.fx.AudioManager._instance.playEffect("win", null)
|
||||
//获取this.gameOverNode所有子节点的位置
|
||||
let child = this.gameOverNode;
|
||||
for (let i = 0; i < this.gameOverNode.childrenCount; i++) {
|
||||
|
|
|
@ -290,6 +290,15 @@ export default class SceneManager extends cc.Component {
|
|||
if (this.pause.getComponent("btnControl")._touch) {
|
||||
this.pause.getComponent("btnControl").setTouch(false);
|
||||
this.node.getChildByName("Pause").active = true;
|
||||
|
||||
let pauseNode = this.node.getChildByName("Pause").getChildByName("pause");
|
||||
pauseNode.scale = 0.3;
|
||||
cc.tween(pauseNode)
|
||||
.to(0.2, { scale: 1.05 }, { easing: 'backOut' })
|
||||
.to(0.15, { scale: 1.0 }, { easing: 'sineOut' })
|
||||
.start();
|
||||
|
||||
|
||||
MapConroler._instance.pause = true;
|
||||
MapConroler._instance.stopBoom();
|
||||
}
|
||||
|
|
|
@ -136,6 +136,12 @@ export default class setUi extends cc.Component {
|
|||
cc.fx.AudioManager._instance.playEffect("anniu_little", null);
|
||||
if (MapConroler._instance.gameStart == true && MapConroler._instance.powerState == false) {
|
||||
this.exit.active = true;
|
||||
let pauseNode = this.exit;
|
||||
pauseNode.scale = 0.3;
|
||||
cc.tween(pauseNode)
|
||||
.to(0.2, { scale: 1.05 }, { easing: 'backOut' })
|
||||
.to(0.15, { scale: 1.0 }, { easing: 'sineOut' })
|
||||
.start();
|
||||
this.exit.getChildByName("Health").getChildByName("queding").active = false;
|
||||
}
|
||||
else {
|
||||
|
|
BIN
assets/music/win.mp3
Normal file
BIN
assets/music/win.mp3
Normal file
Binary file not shown.
8
assets/music/win.mp3.meta
Normal file
8
assets/music/win.mp3.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"ver": "2.0.3",
|
||||
"uuid": "9f2906df-601d-4dfa-a561-31745b62c9dd",
|
||||
"importer": "audio-clip",
|
||||
"downloadMode": 0,
|
||||
"duration": 5.04,
|
||||
"subMetas": {}
|
||||
}
|
Loading…
Reference in New Issue
Block a user