You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.0 KiB
31 lines
1.0 KiB
|
1 week ago
|
|
||
|
|
//*********************
|
||
|
|
// 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_continueLastBattle')
|
||
|
|
export class Auto_continueLastBattle extends UIBase {
|
||
|
|
btnCancel:Node;
|
||
|
|
btnContinue:Node;
|
||
|
|
onLoad(){
|
||
|
|
super.onLoad();
|
||
|
|
this.btnCancel = find("center/btnCancel",this.node);
|
||
|
|
this.btnContinue = find("center/btnContinue",this.node);
|
||
|
|
}
|
||
|
|
onEnable() {
|
||
|
|
this.btnCancel.on(Node.EventType.TOUCH_END, this.click_btnCancel, this);
|
||
|
|
this.btnContinue.on(Node.EventType.TOUCH_END, this.click_btnContinue, this);
|
||
|
|
}
|
||
|
|
onDisable() {
|
||
|
|
this.btnCancel.off(Node.EventType.TOUCH_END, this.click_btnCancel, this);
|
||
|
|
this.btnContinue.off(Node.EventType.TOUCH_END, this.click_btnContinue, this);
|
||
|
|
}
|
||
|
|
click_btnCancel() {}
|
||
|
|
click_btnContinue() {}
|
||
|
|
}
|