|
@@ -119,11 +119,11 @@ namespace GFGGame
|
|
isPassCount++;
|
|
isPassCount++;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- int levelCount = CimbingTowerLevelCfgArray.Instance.dataArray.Length - isPassCount;
|
|
|
|
|
|
+ float levelCount = CimbingTowerLevelCfgArray.Instance.dataArray.Length - isPassCount;
|
|
float height = _ui.m_chapter.target.height;
|
|
float height = _ui.m_chapter.target.height;
|
|
- float value = 300 / (_ui.m_chapter.target.height / 1080.0f);
|
|
|
|
|
|
+ float value = levelCount / CimbingTowerLevelCfgArray.Instance.dataArray.Length;
|
|
indexY = value * Mathf.Max(0, (float)levelCount);
|
|
indexY = value * Mathf.Max(0, (float)levelCount);
|
|
- _ui.m_chapter.target.scrollPane.posY = indexY;
|
|
|
|
|
|
+ _ui.m_chapter.target.scrollPane.SetPercY(value, false);
|
|
}
|
|
}
|
|
private void OnClickLevelItem(EventContext context)
|
|
private void OnClickLevelItem(EventContext context)
|
|
{
|
|
{
|