/** @format */ import {UI} from '../enums/UI' import {BaseUI} from './BaseUI' import {Data, Mgr} from '../GameControl' import {ccUtils} from '../utils/ccUtils' import {observer, render, node, label, editBox, list} from '../mobx/observer' import {msgCmd} from '../proto/msg_cmd' const {ccclass, property} = cc._decorator @ccclass @observer export class AnnouncementUI extends BaseUI { onShow(args, fromUI: number) { //Mgr.net.add(msgCmd.xxx, this, this.onXXXRsp) } onHide(): any { Mgr.event.removeAll(this) } //网络事件======================================= onXXXRsp() {} // 点击事件======================================= onClick() {} }