三连胜提交
This commit is contained in:
@@ -19,6 +19,7 @@ import ClientUpdate from "./module/Config/ClientUpdate";
|
||||
import DailyTaskProgressTracker from "./module/Task/DailyTaskProgressTracker";
|
||||
import ServerEnvironment from "./module/Config/ServerEnvironment";
|
||||
import ServerSwitch from "./module/Config/ServerSwitch";
|
||||
import ThreeWinStreak from "./ThreeWinStreak";
|
||||
|
||||
const { ccclass, property } = cc._decorator;
|
||||
|
||||
@@ -83,6 +84,7 @@ export default class GameManager extends cc.Component {
|
||||
// });
|
||||
this.startTimeCutDown();
|
||||
cc.fx.GameConfig.init(true);
|
||||
ThreeWinStreak.restore();
|
||||
ClientUpdate.initialize();
|
||||
cc.fx.GameConfig.GM_INFO.sceneValue = "loadScene";
|
||||
cc.fx.GameConfig.GM_INFO.gameState = false;
|
||||
@@ -483,6 +485,7 @@ export default class GameManager extends cc.Component {
|
||||
}
|
||||
// console.log("服务器强制刷新状态__________", data.data.forcedUpdate);
|
||||
//如果有连胜记录,就赋值
|
||||
ThreeWinStreak.restore(data.data, data.data.forcedUpdate === true);
|
||||
if (cc.fx.GameConfig.forceOldRainbowWinStreakC || cc.fx.GameConfig.forceRainbowWinStreakB) {
|
||||
cc.fx.GameConfig.GM_INFO.winStreak = 10;
|
||||
cc.fx.GameConfig.GM_INFO.winState = true;
|
||||
|
||||
Reference in New Issue
Block a user