27 lines
318 B
TypeScript
27 lines
318 B
TypeScript
|
|
|
|
|
|
const {ccclass, property} = cc._decorator;
|
|
|
|
|
|
@ccclass
|
|
export default class btnControl extends cc.Component {
|
|
static _instance: any;
|
|
_touch: boolean;
|
|
|
|
|
|
onLoad () {
|
|
this._touch = true;
|
|
}
|
|
|
|
start () {
|
|
}
|
|
|
|
setTouch(type){
|
|
this._touch = type;
|
|
}
|
|
|
|
update (dt) {
|
|
}
|
|
}
|