tips_view.ts 392 B

123456789101112131415
  1. import { _decorator, Component, Node } from 'cc';
  2. import { base_ui } from '../fw/base_ui';
  3. const { ccclass, property } = _decorator;
  4. @ccclass('tips_view')
  5. export class tips_view extends base_ui {
  6. @property(Node) btn_close:Node = null
  7. @property(Node) img_content:Node = null
  8. start() {
  9. this.onButtonListen(this.btn_close, ()=>{
  10. this.close()
  11. })
  12. }
  13. }