You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
661 B
26 lines
661 B
|
|
import Common5 from "../../../Platform/th/Common5";
|
|
|
|
const { ccclass, property } = cc._decorator;
|
|
|
|
@ccclass
|
|
export default class ExitTipCNXX extends cc.Component {
|
|
exitCallFunc = null
|
|
start(){
|
|
|
|
}
|
|
initView(exitCallFunc){
|
|
this.exitCallFunc = exitCallFunc
|
|
}
|
|
onBtnExit(){
|
|
Common5.playEffectCustom("cainiaoxiaoxiao","sound/UI按钮")
|
|
this.node.removeFromParent()
|
|
this.node.destroy()
|
|
this.exitCallFunc && this.exitCallFunc()
|
|
}
|
|
onBtnContinue(){
|
|
Common5.playEffectCustom("cainiaoxiaoxiao","sound/UI按钮")
|
|
this.node.removeFromParent()
|
|
this.node.destroy()
|
|
}
|
|
}
|
|
|