hch
2026-02-07 8f186736dac8222defcdeb3788a27756359c5114
Main/Config/PartialConfigs/MainLevelConfig.cs
@@ -46,12 +46,16 @@
        return waveLineupLists.Count(list => list.Length > 0);
    }
    static List<int> allLevels = new List<int>();
    // 获取目标关卡的索引
    public static int GetToTargetLevelIndex(int targetLevel)
    {
        var levels = GetKeys();
        levels.Sort();
        return levels.IndexOf(targetLevel);
        if (allLevels.IsNullOrEmpty())
        {
            allLevels = GetKeys();
            allLevels.Sort();
        }
        return allLevels.IndexOf(targetLevel);
    }