少年修仙传客户端代码仓库
hch
2025-04-03 c154ac0832fe4379a00d3e1cda700e7d2a7383c7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using vnxbqy.UI;
using UnityEngine;
 
public class PetSkillInfoCell : CellView
{
    [SerializeField] ImageEx imgSkillIcon;
    [SerializeField] ImageEx imgUnLock;
    [SerializeField] TextEx txtUnlockStage;
    [SerializeField] RichText imgSkillDescription;
    PetModel petModel { get { return ModelCenter.Instance.GetModel<PetModel>(); } }
    public void Display(int skillID)
    {
        bool isLock = petModel.IsSkillUnlock(skillID);
        imgUnLock.SetActive(!isLock);
        txtUnlockStage.SetActive(!isLock);
        txtUnlockStage.text = Language.Get("FashionDress106", petModel.GetSkillUnlockLevel(skillID));
        imgSkillIcon.SetSprite(SkillConfig.Get(skillID).IconName);
        imgSkillDescription.text = SkillConfig.Get(skillID).Description;
    }
}