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