var that ;
class name({
extends: cc.Component,
properties: {
},
onload(){
that =this;
}
})
当 组件在预制体或者多个节点上挂载时,此处写法,会造成,所有 that 指向最后一个初始化的节点。(bug)
var that ;
class name({
extends: cc.Component,
properties: {
},
onload(){
that =this;
}
})
当 组件在预制体或者多个节点上挂载时,此处写法,会造成,所有 that 指向最后一个初始化的节点。(bug)