恢复暂停

This commit is contained in:
YZ\249929363 2025-07-22 18:47:38 +08:00
parent 232663a79c
commit 26d44a5168
5 changed files with 7153 additions and 1348 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2124,6 +2124,7 @@ export default class MapConroler extends cc.Component {
if (winCOIN) { if (winCOIN) {
const wincoin = winCOIN.getComponent(SceneManager); const wincoin = winCOIN.getComponent(SceneManager);
if (wincoin) { if (wincoin) {
this.pause = true;
wincoin.openShop(); wincoin.openShop();
} else { } else {
console.log("JiaZai 组件未找到"); console.log("JiaZai 组件未找到");

View File

@ -283,6 +283,7 @@ export default class SceneManager extends cc.Component {
closeShop() { closeShop() {
if (this.shopNode) { if (this.shopNode) {
this.shopNode.active = false; this.shopNode.active = false;
MapConroler._instance.pause = false;
} }
} }

5054
assets/prefab/Pause.prefab Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,9 @@
{
"ver": "1.3.2",
"uuid": "d1366935-fbfb-42fb-8846-8545724468f6",
"importer": "prefab",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}