Example #1
0
    private void RefreshMood(EnumPetMood rMood)
    {
        moodRoot?.SafeSetActive(Module_Pet.instance.Contains(DataCache.ID));

        for (var i = 0; i < moodList.Count; i++)
        {
            moodList[i].gameObject.SetActive(i == (int)rMood);
        }
    }
Example #2
0
    public void RefreshTip(PetSkill.Skill rSkill, int rLevel, EnumPetMood rMood)//技能
    {
        IniteCompent();
        expRemainTime = -1;
        dropBtn.gameObject.SetActive(false);
        m_petSkill?.gameObject.SetActive(true);

        m_rTime.transform.parent.gameObject.SetActive(false);
        Util.DisableAllChildren(wupin, new[] { "icon", "name" });
        AtlasHelper.SetShared(wupin.GetComponent <Image>("icon"), rSkill.skillIcon);
        Util.SetText(wupin.GetComponent <Text>("name"), Util.Format(ConfigText.GetDefalutString(rSkill.skillName), rLevel));
        Util.SetText(tip_text, rSkill.GetDesc(rLevel));
        Util.SetText(m_petSkill, Util.Format(ConfigText.GetDefalutString(105000), (int)rMood));
    }