auto_winView.ts 545 B

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