Fix Progress Bar

This commit is contained in:
copecone committed 2026-05-26 09:01:29 +09:00
1 parent 2187dc7733
commit 8f68f4b089
1 file changed
+3 -3
+3 -3
View File
@@ -210,13 +210,13 @@ namespace ADOFAIRenderer.Component
// Update Progress Bar
var progress = 0f;
int currentFloor = 0;
int totalFloors = 0;
var currentFloor = 0;
var totalFloors = 0;
if (scrController.instance && ADOBase.lm && ADOBase.lm.listFloors != null)
{
currentFloor = scrController.instance.currFloor ? scrController.instance.currFloor.seqID : 0;
totalFloors = ADOBase.lm.listFloors.Count;
totalFloors = ADOBase.lm.listFloors.Count - 1;
if (totalFloors > 0)
{
progress = Mathf.Clamp01((float)currentFloor / totalFloors);