Commit 2410f6a3 authored by wildfirecode's avatar wildfirecode

1

parent 7ea02176
...@@ -303,6 +303,17 @@ export default class MainBase extends eui.UILayer { ...@@ -303,6 +303,17 @@ export default class MainBase extends eui.UILayer {
else if (SceneCtrl.instance.currentScene instanceof MainScene) else if (SceneCtrl.instance.currentScene instanceof MainScene)
playGameBg(); playGameBg();
} }
NetManager.ins.hc_home(() => {
updateMainTimer();
//更新bloodpanel和mapscene
const currentScene = SceneCtrl.instance.currentScene;
if (currentScene && currentScene['updateTimerView'])
currentScene['updateTimerView']();
const current = PanelCtrl.instance._current;
if (current && current['updateTimerView'])
current['updateTimerView']();
}, window['collectRuleId']);
} }
if (document.visibilityState == "hidden") { if (document.visibilityState == "hidden") {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"desc": "OK", "desc": "OK",
"timestamp": 1566885811001, "timestamp": 1566885811001,
"data": { "data": {
"refectionCountdown": 100, "refectionCountdown": 10,
"remainEnargy": 4, "remainEnargy": 4,
"isGetAllTreasureBox": 0, "isGetAllTreasureBox": 0,
"wealth": 7960, "wealth": 7960,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment