| | |
| | | countryImg.SetSprite(HeroUIManager.Instance.GetCountryIconName(heroConfig.Country)); |
| | | jobImg.SetSprite(HeroUIManager.Instance.GetJobIconName(heroConfig.Class)); |
| | | heroModel.Create(heroConfig.SkinIDList[hero.SkinIndex], heroConfig.UIScale); |
| | | onStateImg.SetActive(hero.IsInTeamByTeamType(TeamType.Story)); |
| | | onStateImg.SetActive(hero.IsInTeamByTeamType(BattlePreSetType.Story)); |
| | | |
| | | int teamPos = TeamManager.Instance.GetTeam(TeamType.Story).GetPosition(hero.itemHero.guid); |
| | | int teamPos = TeamManager.Instance.GetTeam(BattlePreSetType.Story).GetPosition(hero.itemHero.guid); |
| | | if (teamPos >= 0) |
| | | { |
| | | redpoint.redpointId = MainRedDot.HeroCardRedpoint * 10 + teamPos; |