UI HUGE UPDATE

This commit is contained in:
FloatGaming
2026-06-25 11:48:56 +08:00
parent bd2a06f4c7
commit b2a1e307a4
1806 changed files with 359863 additions and 20822 deletions
+26
View File
@@ -232,6 +232,11 @@ public class teamSettingPanel : MonoBehaviour
List<CharacterView> selectAbleCharacters = teamManager.SelectableCharacterList;
foreach (CharacterView c in selectAbleCharacters) //id and level
{
if (!IsCharacterUnlocked(c != null ? c.characterId : 0))
{
continue;
}
GameObject characterObj = Instantiate(teamCharacterPrefab, teamCharacterViewContent.transform);
CharacterCardView ccv = characterObj.GetComponent<CharacterCardView>();
TeamCharacterDataInfo tcdi = getCharacterViewInfo(c.characterId);
@@ -251,6 +256,27 @@ public class teamSettingPanel : MonoBehaviour
}
}
}
private bool IsCharacterUnlocked(int characterID)
{
if (characterID <= 0)
{
return false;
}
AllyHero_SO[] heroes = Resources.LoadAll<AllyHero_SO>("");
for (int i = 0; i < heroes.Length; i++)
{
AllyHero_SO hero = heroes[i];
if (hero != null && hero.ally_heroID == characterID)
{
return hero.isUnlocked;
}
}
return false;
}
private bool checkExistenceStatus(List<CharacterView> currentTeam,int characterID)
{
foreach (CharacterView c in currentTeam)