fix: 游戏结束回到首页时新手礼包弹出了两次
This commit is contained in:
parent
55814f4ea3
commit
6a30a6b953
|
|
@ -952,7 +952,7 @@ export default class JiaZai extends cc.Component {
|
||||||
// 4. 设置体力信息
|
// 4. 设置体力信息
|
||||||
// 5. 播放入场动画
|
// 5. 播放入场动画
|
||||||
// 6. 上传关卡数据到云端
|
// 6. 上传关卡数据到云端
|
||||||
// 7. 检查新手礼包
|
// 7. 新手礼包由 onLoad 中的 checkStarter_pack 统一触发
|
||||||
// 8. 检查各种奖励状态
|
// 8. 检查各种奖励状态
|
||||||
// 9. 检查月卡过期状态
|
// 9. 检查月卡过期状态
|
||||||
// ============================================
|
// ============================================
|
||||||
|
|
@ -990,7 +990,6 @@ export default class JiaZai extends cc.Component {
|
||||||
if (entry.animation.name === "down" && !cc.fx.GameConfig.GM_INFO.first) {
|
if (entry.animation.name === "down" && !cc.fx.GameConfig.GM_INFO.first) {
|
||||||
// 动画播放结束后执行的逻辑
|
// 动画播放结束后执行的逻辑
|
||||||
this.node.getChildByName("zhuanchang").active = false;
|
this.node.getChildByName("zhuanchang").active = false;
|
||||||
if (this.newbieGift) this.openStarter_pack();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}, 500);
|
}, 500);
|
||||||
|
|
@ -998,7 +997,6 @@ export default class JiaZai extends cc.Component {
|
||||||
else {
|
else {
|
||||||
if (!cc.fx.GameConfig.GM_INFO.first) {
|
if (!cc.fx.GameConfig.GM_INFO.first) {
|
||||||
this.node.getChildByName("zhuanchang").active = false;
|
this.node.getChildByName("zhuanchang").active = false;
|
||||||
if (this.newbieGift) this.openStarter_pack();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
{
|
|
||||||
"ver": "1.1.3",
|
|
||||||
"uuid": "0efaaad9-e500-4563-b67f-78e367829b36",
|
|
||||||
"importer": "folder",
|
|
||||||
"isBundle": false,
|
|
||||||
"bundleName": "",
|
|
||||||
"priority": 1,
|
|
||||||
"compressionType": {},
|
|
||||||
"optimizeHotUpdate": {},
|
|
||||||
"inlineSpriteFrames": {},
|
|
||||||
"isRemoteBundle": {},
|
|
||||||
"subMetas": {}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user