|
@@ -218,11 +218,11 @@ class HNScenceManager {
|
|
pgContentP = this.pgContentP
|
|
pgContentP = this.pgContentP
|
|
}else{
|
|
}else{
|
|
pgContentP = this.pgContentP = new cc.Node("pgContentP")
|
|
pgContentP = this.pgContentP = new cc.Node("pgContentP")
|
|
|
|
+ runScene.addChild(pgContentP);
|
|
}
|
|
}
|
|
pgContentP.angle = 90
|
|
pgContentP.angle = 90
|
|
pgContentP.setContentSize(runScene.getContentSize().height,runScene.getContentSize().width)//因为旋转了,宽高对调了
|
|
pgContentP.setContentSize(runScene.getContentSize().height,runScene.getContentSize().width)//因为旋转了,宽高对调了
|
|
gameNode.parent = pgContentP
|
|
gameNode.parent = pgContentP
|
|
- runScene.addChild(pgContentP);
|
|
|
|
pgContentP.setAnchorPoint(0.5, 0.5);
|
|
pgContentP.setAnchorPoint(0.5, 0.5);
|
|
pgContentP.setPosition(cc.v2(0,0))
|
|
pgContentP.setPosition(cc.v2(0,0))
|
|
// let widget = pgContentP.addComponent(cc.Widget);
|
|
// let widget = pgContentP.addComponent(cc.Widget);
|
|
@@ -276,8 +276,8 @@ class HNScenceManager {
|
|
cc.vv.audioMgr.stopAllEffects();
|
|
cc.vv.audioMgr.stopAllEffects();
|
|
if (this.pgContentP) {//销毁pg容器
|
|
if (this.pgContentP) {//销毁pg容器
|
|
// this.pgContentP.destroy();
|
|
// this.pgContentP.destroy();
|
|
- this.pgContentP.removeFromParent(true);
|
|
|
|
- this.pgContentP = null;
|
|
|
|
|
|
+ // this.pgContentP.removeFromParent(true);
|
|
|
|
+ // this.pgContentP = null;
|
|
}
|
|
}
|
|
if (this._currGameNode != undefined && this._currGameNode != null) {
|
|
if (this._currGameNode != undefined && this._currGameNode != null) {
|
|
|
|
|