no message
This commit is contained in:
parent
634de5cc35
commit
e919a575d4
|
@ -15337,8 +15337,8 @@
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
1,
|
1,
|
||||||
2,
|
0.01,
|
||||||
2,
|
0.01,
|
||||||
2
|
2
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -29379,6 +29379,7 @@
|
||||||
"__id__": 323
|
"__id__": 323
|
||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
|
"btn_Touch": false,
|
||||||
"_id": "81dQXmYrVK3771lwjUo7gt"
|
"_id": "81dQXmYrVK3771lwjUo7gt"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1554,6 +1554,7 @@ export default class MapConroler extends cc.Component {
|
||||||
if (this.blockNum == 0 && !this.gameWin && !this.gameOver) {
|
if (this.blockNum == 0 && !this.gameWin && !this.gameOver) {
|
||||||
// alert("游戏成功");
|
// alert("游戏成功");
|
||||||
// MiniGameSdk.API.showToast(cc.fx.GameConfig.GM_INFO.level);
|
// MiniGameSdk.API.showToast(cc.fx.GameConfig.GM_INFO.level);
|
||||||
|
this.setOtherLevel();
|
||||||
this.gameWin = true;
|
this.gameWin = true;
|
||||||
if (cc.fx.GameConfig.GM_INFO.hp < cc.fx.GameConfig.GM_INFO.hp_Max) {
|
if (cc.fx.GameConfig.GM_INFO.hp < cc.fx.GameConfig.GM_INFO.hp_Max) {
|
||||||
console.log("恢复一点体力", cc.fx.GameConfig.GM_INFO.level);
|
console.log("恢复一点体力", cc.fx.GameConfig.GM_INFO.level);
|
||||||
|
@ -3162,6 +3163,12 @@ export default class MapConroler extends cc.Component {
|
||||||
.start();
|
.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setOtherLevel() {
|
||||||
|
if (cc.fx.GameConfig.GM_INFO.otherLevel == 1) {
|
||||||
|
cc.fx.GameConfig.GM_INFO.level = 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
update(dt) {
|
update(dt) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user