修复第五章会导致挂机界面卡死的问题
parent
f4292f1f08
commit
ff27e11daa
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue