| | |
| | | var hero = HeroManager.Instance.GetHero(guid); |
| | | var team = TeamManager.Instance.GetTeam(HeroUIManager.Instance.selectTeamType); |
| | | selectRect.SetActive(team.GetHero(guid) != null); |
| | | this.gameObject.name = $"HeroPosHeadCell_{hero.heroId}"; |
| | | |
| | | heroHeadBaseCell.Init(hero.heroId, hero.SkinID, hero.heroStar, hero.awakeLevel, hero.heroLevel, () => |
| | | { |
| | |
| | | }); |
| | | nameText.text = hero.breakLevel == 0 ? hero.heroConfig.Name : Language.Get("herocardbreaklv", hero.heroConfig.Name, hero.breakLevel); |
| | | |
| | | jobImg.SetSprite("herojob" + hero.heroConfig.Class); |
| | | jobImg.SetSprite(HeroUIManager.Instance.GetJobIconName(hero.heroConfig.Class)); |
| | | } |
| | | |
| | | void Click(HeroInfo hero, int index) |
| | |
| | | return; |
| | | } |
| | | |
| | | team.AddHero(hero, out pos); |
| | | team.AddHero(hero, out pos, true); |
| | | if (pos != -1) |
| | | { |
| | | selectRect.SetActive(true); |