auto_airdropItem.ts 589 B

123456789101112131415161718192021
  1. const { ccclass } = cc._decorator;
  2. @ccclass
  3. export default class auto_airdropItem extends cc.Component {
  4. airdropItem: cc.Node;
  5. itemBg: cc.Node;
  6. xcz_qx1: cc.Node;
  7. item_name: cc.Node;
  8. nums: cc.Node;
  9. public static URL:string = "db://assets/resources/prefab/Interface/airdropItem.prefab"
  10. onLoad () {
  11. this.airdropItem = this.node
  12. this.itemBg = this.airdropItem.getChildByName("itemBg");
  13. this.xcz_qx1 = this.airdropItem.getChildByName("xcz_qx1");
  14. this.item_name = this.airdropItem.getChildByName("item_name");
  15. this.nums = this.airdropItem.getChildByName("nums");
  16. }
  17. }