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) { } }