feat: group 1.0.0
This commit is contained in:
@@ -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();
|
||||
// 发送暂停游戏事件
|
||||
|
||||
Reference in New Issue
Block a user