bug修复
This commit is contained in:
parent
a94b0b1a23
commit
a90f0f4583
@ -432,16 +432,16 @@ function LocalData:GetMarktrailHero()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function LocalData:saveBattleSnapshot(snapshot)
|
function LocalData:saveBattleSnapshot(snapshot)
|
||||||
self:setString(LocalData:getRoleKey(LOCAL_DATA_KEY.BATTLE_SNAPSHOT), json.encode(snapshot))
|
|
||||||
if EDITOR_MODE then
|
if EDITOR_MODE then
|
||||||
Logger.logHighlight(json.encode(snapshot))
|
Logger.logHighlight(json.encode(snapshot))
|
||||||
end
|
end
|
||||||
|
self:setString(LocalData:getRoleKey(LOCAL_DATA_KEY.BATTLE_SNAPSHOT), json.encode(snapshot))
|
||||||
end
|
end
|
||||||
|
|
||||||
function LocalData:getBattleSnapshot()
|
function LocalData:getBattleSnapshot()
|
||||||
local dealedSnapshot = self:getString(LocalData:getRoleKey(LOCAL_DATA_KEY.BATTLE_SNAPSHOT), "{}")
|
local dealedSnapshot = self:getString(LocalData:getRoleKey(LOCAL_DATA_KEY.BATTLE_SNAPSHOT), "{}")
|
||||||
if EDITOR_MODE then
|
if EDITOR_MODE then
|
||||||
Logger.logHighlight(json.decode(dealedSnapshot))
|
Logger.logHighlight(dealedSnapshot)
|
||||||
end
|
end
|
||||||
return json.decode(dealedSnapshot)
|
return json.decode(dealedSnapshot)
|
||||||
end
|
end
|
||||||
|
|||||||
@ -983,6 +983,7 @@ function UIManager:backToLogin()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function UIManager:backToLoginWithoutLogout()
|
function UIManager:backToLoginWithoutLogout()
|
||||||
|
self:hideMessageBox()
|
||||||
self:stopCurrentBGM()
|
self:stopCurrentBGM()
|
||||||
ModuleManager.TutorialManager:stopTutorial()
|
ModuleManager.TutorialManager:stopTutorial()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user