UIInvite.ts 424 B

12345678910111213141516
  1. import { UIPopup } from '@scripts/framework/ui/UIPopup';
  2. import { addBtnClick } from '@scripts/utils/UIHelper';
  3. import { _decorator, Component, Node } from 'cc';
  4. const { ccclass, property } = _decorator;
  5. @ccclass('UIInvite')
  6. export class UIInvite extends UIPopup {
  7. @property(Node)
  8. btnClose: Node;
  9. protected onCreate(): void | Promise<void> {
  10. addBtnClick(this.btnClose, this.closeSelf, this);
  11. }
  12. }