【无尽副本】优化清除缓存第一次进入无尽副本时任务状态错误

dev_chengFeng
gaoxin 2022-01-19 18:32:43 +08:00
parent 908cee1961
commit 5a66722aed
1 changed files with 5 additions and 2 deletions

View File

@ -153,7 +153,10 @@ function this.EnterMap()
local note = PlayerPrefs.GetInt("WuJin"..PlayerManager.uid)
MapManager.curMapId = EndLessMapManager.openMapId
if serData.endTime ~= note then
-- 首次登录不清除数据
if note ~= 0 then
TaskManager.ResetEndlessMissionState()
end
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.CARBON, MapManager.curMapId)
else
MapManager.curCarbonType = CarBonTypeId.ENDLESS