no message

This commit is contained in:
YZ\249929363 2025-07-31 18:42:45 +08:00
parent 634de5cc35
commit e919a575d4
2 changed files with 10 additions and 2 deletions

View File

@ -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"
}, },
{ {

View File

@ -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) {