const { ccclass } = cc._decorator; @ccclass export default class auto_pauseView extends cc.Component { failView: cc.Node; bg: cc.Node; continue_btn: cc.Node; layout: cc.Node; liveDay_sp: cc.Node; liveDay_lb: cc.Node; livePeople_sp: cc.Node; livePeople_lb: cc.Node; diePeople_sp: cc.Node; diePeople_lb: cc.Node; dieZom_sp: cc.Node; dieZom_lb: cc.Node; dieBoss_sp: cc.Node; dieBoss_lb: cc.Node; public static URL:string = "db://assets/resources/prefab/Interface/pauseView.prefab" onLoad () { this.failView = this.node this.bg = this.failView.getChildByName("bg"); this.continue_btn = this.failView.getChildByName("continue_btn"); this.layout = this.failView.getChildByName("layout"); this.liveDay_sp = this.layout.getChildByName("liveDay_sp"); this.liveDay_lb = this.liveDay_sp.getChildByName("liveDay_lb"); this.livePeople_sp = this.layout.getChildByName("livePeople_sp"); this.livePeople_lb = this.livePeople_sp.getChildByName("livePeople_lb"); this.diePeople_sp = this.layout.getChildByName("diePeople_sp"); this.diePeople_lb = this.diePeople_sp.getChildByName("diePeople_lb"); this.dieZom_sp = this.layout.getChildByName("dieZom_sp"); this.dieZom_lb = this.dieZom_sp.getChildByName("dieZom_lb"); this.dieBoss_sp = this.layout.getChildByName("dieBoss_sp"); this.dieBoss_lb = this.dieBoss_sp.getChildByName("dieBoss_lb"); } }