1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| using System.Collections;
| using System.Collections.Generic;
| using UnityEngine;
| using UnityEngine.UI;
|
| namespace vnxbqy.UI
| {
| public class TitleSkillCell : CellView
| {
| [SerializeField] Text m_SkillDescription;
| [SerializeField, Header("技能名字色")] string m_SkillNameColorHex;
|
| public void Display(int _skillId)
| {
| var config = SkillConfig.Get(_skillId);
| if (config != null)
| {
| m_SkillDescription.text = StringUtility.Contact("<color=#", m_SkillNameColorHex, ">", config.SkillName, ":", "</color>", config.Description);
| }
| }
| }
| }
|
|