コード例 #1
0
    public void UpdateFellowInfo(Fellow fellow)
    {
        if (fellow == null)
        {
            return;
        }

        if (fellow.IsValid() == false)
        {
            return;
        }

        m_AttackLabel.text   = fellow.GetAttackValue().ToString();
        m_HitLabel.text      = fellow.GetHitValue().ToString();
        m_CriticalLabel.text = fellow.GetCriticalValue().ToString();
        m_GuardLabel.text    = fellow.GetGuardValue().ToString();
        m_BlessLabel.text    = fellow.GetBlessValue().ToString();

        m_AttackLabelNext.text   = StrDictionary.GetClientDictionaryString("#{11202}", fellow.GetAttackValueByStar(fellow.StarLevel + 1) - fellow.GetAttackValue());
        m_HitLabelNext.text      = StrDictionary.GetClientDictionaryString("#{11202}", fellow.GetHitValueByStar(fellow.StarLevel + 1) - fellow.GetHitValue());
        m_CriticalLabelNext.text = StrDictionary.GetClientDictionaryString("#{11202}", fellow.GetCriticalValueByStar(fellow.StarLevel + 1) - fellow.GetCriticalValue());
        m_GuardLabelNext.text    = StrDictionary.GetClientDictionaryString("#{11202}", fellow.GetGuardValueByStar(fellow.StarLevel + 1) - fellow.GetGuardValue());
        m_BlessLabelNext.text    = StrDictionary.GetClientDictionaryString("#{11202}", fellow.GetBlessValueByStar(fellow.StarLevel + 1) - fellow.GetBlessValue());

        if (fellow.GetFellowType() == (int)FELLOWTYPE.BABY)
        {
            m_StarAttr.SetActive(false);
            //m_BabyFellowNotice.SetActive(true);
        }
        else
        {
            UpdateFellowInfo_CurStar(fellow);
            //UpdateFellowInfo_NextStar(fellow, 0);
            UpdateFellowInfo_Material();

            m_StarAttr.SetActive(true);
            //m_BabyFellowNotice.SetActive(false);
        }

        m_Fellow = fellow;
    }