import { UIPopup } from '@scripts/framework/ui/UIPopup'; import { addBtnClick } from '@scripts/utils/UIHelper'; import { _decorator, Component, Node } from 'cc'; const { ccclass, property } = _decorator; @ccclass('UIInvite') export class UIInvite extends UIPopup { @property(Node) btnClose: Node; protected onCreate(): void | Promise { addBtnClick(this.btnClose, this.closeSelf, this); } }