咸鱼的反击
xianyudefanji/assets/Scripts/JuQingTips/JuQingTipView.ts

28 lines
406 B

3 months ago
const {ccclass, property} = cc._decorator;
@ccclass
export default class JuQingTipView extends cc.Component {
@property(cc.Label)
contentStr: cc.Label = null;
// LIFE-CYCLE CALLBACKS:
// onLoad () {}
start () {
}
initView(str){
this.contentStr.string = str
}
onBtnClose(){
this.node.removeFromParent()
}
// update (dt) {}
}