auto_obtainView.ts 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. const { ccclass } = cc._decorator;
  2. @ccclass
  3. export default class auto_obtainView extends cc.Component {
  4. obtainView: cc.Node;
  5. mask: cc.Node;
  6. bg: cc.Node;
  7. collect: cc.Node;
  8. close: cc.Node;
  9. content: cc.Node;
  10. option: cc.Node;
  11. gou1: cc.Node;
  12. hook: cc.Node;
  13. gou2: cc.Node;
  14. btn_double: cc.Node;
  15. icon_get: cc.Node;
  16. public static URL:string = "db://assets/resources/prefab/Interface/obtainView.prefab"
  17. onLoad () {
  18. this.obtainView = this.node
  19. this.mask = this.obtainView.getChildByName("mask");
  20. this.bg = this.obtainView.getChildByName("bg");
  21. this.collect = this.bg.getChildByName("collect");
  22. this.close = this.bg.getChildByName("close");
  23. this.content = this.bg.getChildByName("content");
  24. this.option = this.bg.getChildByName("option");
  25. this.gou1 = this.option.getChildByName("gou1");
  26. this.hook = this.gou1.getChildByName("hook");
  27. this.gou2 = this.option.getChildByName("gou2");
  28. this.btn_double = this.bg.getChildByName("btn_double");
  29. this.icon_get = this.btn_double.getChildByName("icon_get");
  30. }
  31. }