加入很多新内容,这波一块交了

This commit is contained in:
2026-04-08 20:53:41 +08:00
parent d9376833b6
commit 85dfff28dd
128 changed files with 14546 additions and 474 deletions
+21
View File
@@ -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));
}
}
}