import { ryw_Event } from "../../../FrameWork/Event/EventEnum"; import EventMgr from "../../../FrameWork/Event/EventMgr"; import Game from "./Game"; const { ccclass, property } = cc._decorator; @ccclass export default class TerrTip extends cc.Component { protected start(): void { } btnCloseFunc() { EventMgr.emitEvent_custom(ryw_Event.startTimeTick); this.node.removeFromParent(); } btnExit(){ Game.ins.exitGame(); this.node.removeFromParent(); } }