cc.Class({
extends: cc.Component,
properties: {
spSelected: cc.Node,
touched: {
default: false,
notify(){
this.spSelected.active = this.touched;
}
},
},
});
怎么翻译成TS 的语法
访问 这个 touched 属性 就能 直接调用到 这个 notify(){} 方法
