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