feat: group 1.0.0

This commit is contained in:
zzc
2026-05-12 06:46:31 +08:00
parent 493b4709bc
commit 2fc90c1219
55 changed files with 23561 additions and 1767 deletions

View File

@@ -1,5 +1,6 @@
import { _decorator, Component, director, Node } from "cc";
import { EventDispatcher } from "../libs/EventDispatcher";
import Common from "../libs/Common";
const { ccclass, property } = _decorator;
@ccclass("PauseModal")
@@ -20,6 +21,8 @@ export class PauseModal extends Component {
// 显示弹窗
showModal() {
this.node.active = true;
// 设置暂停游戏背景色
Common.setPageBackgroundColorAsDino(this.node);
// 暂停游戏
director.pause();
// 发送暂停游戏事件