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.
36 lines
1.2 KiB
36 lines
1.2 KiB
|
|
//*********************
|
|
// 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_WeaponSuiPian')
|
|
export class Auto_WeaponSuiPian extends UIBase {
|
|
bgMask:Node;
|
|
qianwang1:Node;
|
|
qianwang2:Node;
|
|
onLoad(){
|
|
super.onLoad();
|
|
this.bgMask = find("bgMask",this.node);
|
|
this.qianwang1 = find("center/qianwang1",this.node);
|
|
this.qianwang2 = find("center/qianwang2",this.node);
|
|
}
|
|
onEnable() {
|
|
this.bgMask.on(Node.EventType.TOUCH_END, this.click_bgMask, this);
|
|
this.qianwang1.on(Node.EventType.TOUCH_END, this.click_qianwang1, this);
|
|
this.qianwang2.on(Node.EventType.TOUCH_END, this.click_qianwang2, this);
|
|
}
|
|
onDisable() {
|
|
this.bgMask.off(Node.EventType.TOUCH_END, this.click_bgMask, this);
|
|
this.qianwang1.off(Node.EventType.TOUCH_END, this.click_qianwang1, this);
|
|
this.qianwang2.off(Node.EventType.TOUCH_END, this.click_qianwang2, this);
|
|
}
|
|
click_bgMask() {}
|
|
click_qianwang1() {}
|
|
click_qianwang2() {}
|
|
} |