const { ccclass } = cc._decorator; @ccclass export default class auto_airdropView extends cc.Component { airdropView: cc.Node; mask: cc.Node; bg: cc.Node; btn_get: cc.Node; icon_get: cc.Node; btn_refrsh: cc.Node; icon_refresh: cc.Node; close: cc.Node; content: cc.Node; time: cc.Node; public static URL:string = "db://assets/resources/prefab/Interface/airdropView.prefab" onLoad () { this.airdropView = this.node this.mask = this.airdropView.getChildByName("mask"); this.bg = this.airdropView.getChildByName("bg"); this.btn_get = this.bg.getChildByName("btn_get"); this.icon_get = this.btn_get.getChildByName("icon_get"); this.btn_refrsh = this.bg.getChildByName("btn_refrsh"); this.icon_refresh = this.btn_refrsh.getChildByName("icon_refresh"); this.close = this.bg.getChildByName("close"); this.content = this.bg.getChildByName("content"); this.time = this.bg.getChildByName("time"); } }