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