Ejemplo n.º 1
0
    public static PetSkillData Create(PetSkill.Skill rSkill)
    {
        var skillData = _Create <PetSkillData>();

        skillData.skillInfo = rSkill;

        skillData.Initialized();
        return(skillData);
    }
Ejemplo n.º 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));
    }