加入很多新内容,这波一块交了
This commit is contained in:
@@ -41,4 +41,25 @@ public class esDesPrefab : MonoBehaviour
|
||||
skill_story.gameObject.SetActive(!string.IsNullOrWhiteSpace(storyText));
|
||||
}
|
||||
}
|
||||
|
||||
public void Bind(string displayName, Sprite icon, string description, string story)
|
||||
{
|
||||
if (skillProfile != null)
|
||||
{
|
||||
skillProfile.sprite = icon;
|
||||
skillProfile.enabled = icon != null;
|
||||
}
|
||||
|
||||
if (skillName != null)
|
||||
skillName.text = displayName ?? string.Empty;
|
||||
|
||||
if (skillDescription != null)
|
||||
skillDescription.text = description ?? string.Empty;
|
||||
|
||||
if (skill_story != null)
|
||||
{
|
||||
skill_story.text = story ?? string.Empty;
|
||||
skill_story.gameObject.SetActive(!string.IsNullOrWhiteSpace(skill_story.text));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user