| | |
| | | //上阵武将国家光环激活 |
| | | void RefreshOnTeamCountry(bool playEffect = false) |
| | | { |
| | | // 先检查混搭阵型 |
| | | var mixedConfig = HeroUIManager.Instance.GetMixedFormationConfig(HeroUIManager.Instance.selectTeamType, true); |
| | | if (mixedConfig != null) |
| | | { |
| | | countryOnImg.SetSprite("heroTeamCountryHe"); |
| | | var participatingCountries = HeroUIManager.Instance.GetParticipatingCountriesByPriority(HeroUIManager.Instance.selectTeamType, true); |
| | | int totalPoints = mixedConfig.Countrys * mixedConfig.NeedHeroCount; |
| | | for (int i = 0; i < OnCountImgs.Count; i++) |
| | | { |
| | | if (i < totalPoints) |
| | | { |
| | | int countryIndex = i / mixedConfig.NeedHeroCount; |
| | | OnCountImgs[i].SetActive(true); |
| | | OnCountImgs[i].SetSprite("heroTeamCountryPoint" + participatingCountries[countryIndex]); |
| | | } |
| | | else |
| | | { |
| | | OnCountImgs[i].SetActive(false); |
| | | } |
| | | } |
| | | if (playEffect) |
| | | countryEffect.Play(); |
| | | return; |
| | | } |
| | | |
| | | Int2 result = HeroUIManager.Instance.GetMaxCountHeroCountry(HeroUIManager.Instance.selectTeamType, true); |
| | | |
| | | var config = HeroLineupHaloConfig.GetConfig(result.x, result.y); |