import { UIBase } from '../UI/UIBase'; const { ccclass, property } = cc._decorator; @ccclass export class UpFail extends UIBase { public static prefabPath = 'prefabs/UIPrefab/pb_herofail'; @property(cc.Node) beforeNode: cc.Node = null; @property(cc.Label) lb_lv: cc.Label = null; @property(cc.Label) lb_hp: cc.Label = null; @property(cc.Label) lb_atk: cc.Label = null; @property(cc.Label) lb_def: cc.Label = null; @property(cc.Label) lb_lucky: cc.Label = null; @property(cc.Label) lb_adv: cc.Label = null; init(data: any) { console.log(JSON.stringify(data)); this.beforeNode.getComponent('herochoseone').initdata(); } onClose() { this.node.destroy(); } }