UI update 02
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user