@property(Prefab)
@property({type:Prefab})
pr:Prefab=null
if(this.pr){
let newNode=instantiate(this.pr)
this.node.addChild(newNode)
newNode.setPosition(100,100)
}else{
console.log("请设置预制体:)
}
@property(Prefab)
@property({type:Prefab})
pr:Prefab=null
if(this.pr){
let newNode=instantiate(this.pr)
this.node.addChild(newNode)
newNode.setPosition(100,100)
}else{
console.log("请设置预制体:)
}