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.
31 lines
836 B
31 lines
836 B
import EventMgr from "../../FrameWork/Event/EventMgr";
|
|
import { ryw_Event } from "../../FrameWork/Event/EventEnum";
|
|
import Common5 from "../../Platform/th/Common5";
|
|
import PrefabManage from "../PrefabManager/PrefabManage";
|
|
|
|
const {ccclass, property} = cc._decorator;
|
|
|
|
|
|
@ccclass
|
|
export default class ExitRoom extends cc.Component {
|
|
|
|
onLoad () {
|
|
|
|
}
|
|
|
|
start () {
|
|
|
|
}
|
|
onBtnExitRoomClick(){
|
|
//Common5.playEffect("sound/按键点击")
|
|
console.log('onBtnExitRoomClick+++++++++===')
|
|
|
|
let name = this.node.parent.name
|
|
this.node.parent.removeFromParent()
|
|
this.node.parent.destroy()
|
|
// setTimeout(()=>{
|
|
// cc.assetManager.releaseAsset(PrefabManage.curRelesePrefab)
|
|
// },100)
|
|
EventMgr.emitEvent_custom(ryw_Event.ExitBtnEvent, '');
|
|
}
|
|
}
|
|
|