lcy
13 小时以前 68869f5b4b4139958942294522471ff9f9f6c8f9
Main/System/HeroUI/HeroPosWin.cs
@@ -238,6 +238,31 @@
    //上阵武将国家光环激活
    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);