const { ccclass } = cc._decorator; @ccclass export default class auto_airdropItem extends cc.Component { airdropItem: cc.Node; itemBg: cc.Node; xcz_qx1: cc.Node; item_name: cc.Node; nums: cc.Node; public static URL:string = "db://assets/resources/prefab/Interface/airdropItem.prefab" onLoad () { this.airdropItem = this.node this.itemBg = this.airdropItem.getChildByName("itemBg"); this.xcz_qx1 = this.airdropItem.getChildByName("xcz_qx1"); this.item_name = this.airdropItem.getChildByName("item_name"); this.nums = this.airdropItem.getChildByName("nums"); } }