修复第五章会导致挂机界面卡死的问题

dev_chengFeng
JieLing 2020-08-25 16:06:06 +08:00
parent f4292f1f08
commit ff27e11daa
1 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,7 @@ local mapIdList = {
[2] = 5003,
[3] = 5005,
[4] = 4002,
[4] = 5004,
[5] = 5004,
}
local InitCamPos = {
[4002] = {pos = Vector3.New(27.5, -27.5, -50)},
@ -195,6 +195,8 @@ function this:LoadMapData()
local curChapter = FightPointPassManager.GetCurChapterIndex()
local index = 1
index = math.floor((curChapter - 1) % 5 + 1)
Log(curChapter)
Log(index)
m_curMapId = mapIdList[index]
LogPink("#mapIdList:"..#mapIdList.." m_curMapId:"..m_curMapId.." curChapter:"..curChapter.." index:"..index.." State:"..tostring(FightPointPassManager.isOpenNewChapter))
TileMapView.AwakeInit(this.mapRoot, m_curMapId, nil, Vector2.New(180, 180))