boss_tips.ts 450 B

123456789101112131415161718
  1. import { _decorator, Component, Node } from 'cc';
  2. const { ccclass, property } = _decorator;
  3. @ccclass('boss_tips')
  4. export class boss_tips extends Component {
  5. @property(Node) btn_tips:Node = null;
  6. private call_back = null;
  7. public initView(call){
  8. this.call_back = call;
  9. this.btn_tips.on(Node.EventType.TOUCH_END,()=>{
  10. if(this.call_back!=null){
  11. this.call_back()
  12. }
  13. })
  14. }
  15. }