hch
2 天以前 8e91ea34abd99ec2960f67580baf2133dc86799f
536 【新手提示】新手期增加上阵武将提示
1个文件已修改
18 ■■■■■ 已修改文件
Main/System/Main/HeroFightingCardCell.cs 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Main/HeroFightingCardCell.cs
@@ -23,6 +23,7 @@
    [SerializeField] Image emptyLockImg;
    [SerializeField] Image redPointImg;
    [SerializeField] UIEffectPlayer unlockEffect;
    [SerializeField] GameObject onTip;  //上阵提示
    void OnEnable()
    {
@@ -63,11 +64,26 @@
                    redPointImg.SetActive(HeroUIManager.Instance.CanUnLock(HeroUIManager.Instance.lockIndexList[lockIndex]));
                }
            }
            if (onTip != null)
            {
                if (PlayerDatas.Instance.baseData.ExAttr1 / 100 < 601 && HeroManager.Instance.GetHeroCount() > index && index < 3)
                {
                    //新手期 可能因为一些操作原因没上阵英雄
                    onTip.SetActive(true);
                }
                else
                {
                    onTip.SetActive(false);
                }
            }
            return;
        }
        else
        {
            if (onTip != null)
            {
                onTip.SetActive(false);
            }
            clickHeroBtn.SetActive(true);
            clickEmptyBtn.SetActive(false);
        }