import { _decorator, Component, Node, Label, EventHandler } from 'cc'; import { Window } from '../core/ui/window/Window'; const { ccclass, property } = _decorator; @ccclass('GetTenfold') export class GetTenfold extends Component { public closeBackFun: EventHandler; start() { } /** * @param data 0:奖励倍数 * 1:关闭窗口回调方法 */ public setData(data: any[]) { if (data[1]) { this.closeBackFun = data[1]; } } public close(closeWindow: () => void) { this.closeBackFun && this.closeBackFun.emit([]); closeWindow(); } }