pubgv3/assets/scripts/tips/CancelBoost.ts
guoqing.zhu aec0551f00 updaet
2022-06-07 11:47:49 +08:00

25 lines
441 B
TypeScript

import NetManage from '../manages/NetManage';
import { UIBase } from '../UI/UIBase';
const { ccclass, property } = cc._decorator;
@ccclass
export class CancelBoost extends UIBase {
public static prefabPath = 'prefabs/tips/pb_cancelBoost';
private indata: any;
init(data: any) {
this.indata = data;
}
onClose() {
this.node.destroy();
}
onOK() {
this.node.destroy();
cc.Notifier.emit('boostcancel', this.indata.mid);
}
}