auto_crazyAwardView.ts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. const { ccclass } = cc._decorator;
  2. @ccclass
  3. export default class auto_crazyAwardView extends cc.Component {
  4. crazyAwardView: cc.Node;
  5. bg: cc.Node;
  6. fxtsjs_biaoti: cc.Node;
  7. point: cc.Node;
  8. heroContent: cc.Node;
  9. heroSlot1: cc.Node;
  10. heroSlot2: cc.Node;
  11. heroSlot3: cc.Node;
  12. heroSlot4: cc.Node;
  13. zombieContent: cc.Node;
  14. zombieSlot1: cc.Node;
  15. zombieSlot2: cc.Node;
  16. zombieSlot3: cc.Node;
  17. zombieSlot4: cc.Node;
  18. fxtsjs_btn: cc.Node;
  19. kdzl: cc.Node;
  20. byjs: cc.Node;
  21. jbjl: cc.Node;
  22. jindutiao2: cc.Node;
  23. nodeProgress: cc.Node;
  24. public static URL:string = "db://assets/resources/prefab/Interface/crazyAwardView.prefab"
  25. onLoad () {
  26. this.crazyAwardView = this.node
  27. this.bg = this.crazyAwardView.getChildByName("bg");
  28. this.fxtsjs_biaoti = this.crazyAwardView.getChildByName("fxtsjs_biaoti");
  29. this.point = this.fxtsjs_biaoti.getChildByName("point");
  30. this.heroContent = this.crazyAwardView.getChildByName("heroContent");
  31. this.heroSlot1 = this.heroContent.getChildByName("heroSlot1");
  32. this.heroSlot2 = this.heroContent.getChildByName("heroSlot2");
  33. this.heroSlot3 = this.heroContent.getChildByName("heroSlot3");
  34. this.heroSlot4 = this.heroContent.getChildByName("heroSlot4");
  35. this.zombieContent = this.crazyAwardView.getChildByName("zombieContent");
  36. this.zombieSlot1 = this.zombieContent.getChildByName("zombieSlot1");
  37. this.zombieSlot2 = this.zombieContent.getChildByName("zombieSlot2");
  38. this.zombieSlot3 = this.zombieContent.getChildByName("zombieSlot3");
  39. this.zombieSlot4 = this.zombieContent.getChildByName("zombieSlot4");
  40. this.fxtsjs_btn = this.crazyAwardView.getChildByName("fxtsjs_btn");
  41. this.kdzl = this.crazyAwardView.getChildByName("kdzl");
  42. this.byjs = this.crazyAwardView.getChildByName("byjs");
  43. this.jbjl = this.crazyAwardView.getChildByName("jbjl");
  44. this.jindutiao2 = this.crazyAwardView.getChildByName("jindutiao2");
  45. this.nodeProgress = this.jindutiao2.getChildByName("nodeProgress");
  46. }
  47. }