UI update 02

This commit is contained in:
FloatGaming
2026-06-30 21:21:30 +08:00
parent b2a1e307a4
commit f62f643cfc
1666 changed files with 211081 additions and 22799 deletions
+2 -3
View File
@@ -398,7 +398,7 @@ public class UI_Idols : MonoBehaviour
}
#endif
AllyHero_SO[] loadedHeroes = Resources.LoadAll<AllyHero_SO>(string.IsNullOrWhiteSpace(idolSOpath_runtime) ? string.Empty : idolSOpath_runtime);
AllyHero_SO[] loadedHeroes = RuntimeResourcesCache.LoadAllAllyHeroes();
for (int i = 0; i < loadedHeroes.Length; i++)
{
if (loadedHeroes[i] != null)
@@ -557,8 +557,7 @@ public class UI_Idols : MonoBehaviour
levels.Sort((left, right) => left.requiredEXP.CompareTo(right.requiredEXP));
int currentExp = Mathf.Max(0, hero.ally_currentEXP);
int unlockedTierIndex = Mathf.Clamp(hero.ally_growthUnlockedTierIndex, 0, levels.Count - 1);
int displayIndex = unlockedTierIndex;
int displayIndex = Mathf.Clamp(hero.GetUnlockedLevelIndex(), 0, levels.Count - 1);
AllyHero_SO.AllyLevelInfo currentLevel = levels[displayIndex];
int tierIndex = ResolveTierIndex(currentLevel, displayIndex, levels.Count);
snapshot.levelIcon = GetLevelIconByIndex(tierIndex);