auto_shopView.ts 706 B

1234567891011121314151617181920212223242526272829
  1. const { ccclass } = cc._decorator;
  2. @ccclass
  3. export default class auto_shopView extends cc.Component {
  4. shopView: cc.Node;
  5. mask: cc.Node;
  6. bg: cc.Node;
  7. btn: cc.Node;
  8. icon: cc.Node;
  9. info: cc.Node;
  10. close: cc.Node;
  11. time: cc.Node;
  12. public static URL:string = "db://assets/resources/prefab/Interface/shopView.prefab"
  13. onLoad () {
  14. this.shopView = this.node
  15. this.mask = this.shopView.getChildByName("mask");
  16. this.bg = this.shopView.getChildByName("bg");
  17. this.btn = this.bg.getChildByName("btn");
  18. this.icon = this.btn.getChildByName("icon");
  19. this.info = this.bg.getChildByName("info");
  20. this.close = this.bg.getChildByName("close");
  21. this.time = this.bg.getChildByName("time");
  22. }
  23. }