|
@@ -237,8 +237,8 @@ class HNScenceManager {
|
|
}
|
|
}
|
|
this.setHallNodesActive(false);
|
|
this.setHallNodesActive(false);
|
|
if (this._currGameNode != undefined && this._currGameNode != null) {
|
|
if (this._currGameNode != undefined && this._currGameNode != null) {
|
|
- this._currGameNode.destroy();
|
|
|
|
- // this._currGameNode.removeFromParent(true);
|
|
|
|
|
|
+ // this._currGameNode.destroy();
|
|
|
|
+ this._currGameNode.removeFromParent(true);
|
|
this._currGameNode = null;
|
|
this._currGameNode = null;
|
|
}
|
|
}
|
|
if (cc.vv && cc.vv.audioMgr) {
|
|
if (cc.vv && cc.vv.audioMgr) {
|
|
@@ -275,14 +275,14 @@ class HNScenceManager {
|
|
cc.vv.audioMgr.stopBackMusic();
|
|
cc.vv.audioMgr.stopBackMusic();
|
|
cc.vv.audioMgr.stopAllEffects();
|
|
cc.vv.audioMgr.stopAllEffects();
|
|
if (this.pgContentP) {//销毁pg容器
|
|
if (this.pgContentP) {//销毁pg容器
|
|
- this.pgContentP.destroy();
|
|
|
|
- // this.pgContentP.removeFromParent(true);
|
|
|
|
|
|
+ // this.pgContentP.destroy();
|
|
|
|
+ this.pgContentP.removeFromParent(true);
|
|
this.pgContentP = null;
|
|
this.pgContentP = null;
|
|
}
|
|
}
|
|
if (this._currGameNode != undefined && this._currGameNode != null) {
|
|
if (this._currGameNode != undefined && this._currGameNode != null) {
|
|
|
|
|
|
- this._currGameNode.destroy();
|
|
|
|
- // this._currGameNode.removeFromParent(true);
|
|
|
|
|
|
+ // this._currGameNode.destroy();
|
|
|
|
+ this._currGameNode.removeFromParent(true);
|
|
this._currGameNode = null;
|
|
this._currGameNode = null;
|
|
|
|
|
|
let runScene = cc.director.getScene();
|
|
let runScene = cc.director.getScene();
|