//********************* // create by 流云 // 插件自动生成的节点脚本 // 请勿修改(自动生成会覆盖) // 请通过子类继承使用 //********************* import { _decorator, Component, Node, find, Sprite, Label, Button, ScrollView, EditBox } from 'cc'; import { UIBase } from '../../../mx/module/ui/UIBase'; const { ccclass } = _decorator; @ccclass('Auto_challengeTip') export class Auto_challengeTip extends UIBase { ui_center:Node; tizozhanBtn:Node; closeBtn:Node; onLoad(){ super.onLoad(); this.ui_center = find("ui_center",this.node); this.tizozhanBtn = find("ui_center/tizozhanBtn",this.node); this.closeBtn = find("ui_center/closeBtn",this.node); } onEnable() { this.tizozhanBtn.on(Node.EventType.TOUCH_END, this.click_tizozhanBtn, this); this.closeBtn.on(Node.EventType.TOUCH_END, this.click_closeBtn, this); } onDisable() { this.tizozhanBtn.off(Node.EventType.TOUCH_END, this.click_tizozhanBtn, this); this.closeBtn.off(Node.EventType.TOUCH_END, this.click_closeBtn, this); } click_tizozhanBtn() {} click_closeBtn() {} }