Beispiel #1
0
    /// <summary>
    /// 更新数据显示
    /// </summary>
    public void UpdateInfo()
    {
        if (UpGradeStar.gameObject.activeSelf)
        {
            UpGradeStar.RefreshDrug(hd);
        }
        UpGradeStar.RefreshSoulStone(hd);
        heroDes.RefreshDesInfo();
        heroDes.SetDingweiAndTedian();
        NameArea.RefreshUI(hd);
        breakthrough.RefreshUI(hd);
        if (Runes.gameObject.activeSelf)
        {
            Runes.RefreshRunes();
        }
        //hd = playerData.GetInstance().selectHeroDetail;
        //if (EquipPanel.instance)
        if (HeroAndEquipNodeData.TanNUm == 3)
        {
            EquipPanel.instance.ShowEquip(hd);
        }
        if (HeroAndEquipNodeData.TanNUm == 4)
        {
            HeroSkill.RefreshSkill(hd);
        }
        //if (HeroSkill.gameObject.activeSelf)
        WearRunes();
        float length = UI_HeroDetail.hd.node.GetStarGrowUpRate(0, UI_HeroDetail.hd.star);

        strengthGrowthLabel.text = "" + length;
        PowerProgress.width      = HeroDescription.Instance().GetProgressLength(length);

        length = UI_HeroDetail.hd.node.GetStarGrowUpRate(1, UI_HeroDetail.hd.star);
        intelligenceGrowthLabel.text = "" + length;
        IntelligenceProgress.width   = HeroDescription.Instance().GetProgressLength(length);

        length = UI_HeroDetail.hd.node.GetStarGrowUpRate(2, UI_HeroDetail.hd.star);
        agileGrowthLabel.text = "" + length;

        AgilityProgress.width = HeroDescription.Instance().GetProgressLength(length);
        SetUpgradeProperty();
    }