养成基本完毕,新UI,修bug,装备初步,

This commit is contained in:
FloatGaming
2026-03-23 22:37:14 +08:00
parent 49e45ac464
commit dd205b6cb4
2349 changed files with 261722 additions and 283 deletions
+22
View File
@@ -0,0 +1,22 @@
using UnityEngine;
using UnityEngine.UI;
public class ssPrefab : MonoBehaviour
{
public Image specialSkillIcon;
public Text specialSkillName;
public void Setup(Sprite icon, string groupName)
{
if (specialSkillIcon != null)
{
specialSkillIcon.sprite = icon;
specialSkillIcon.color = icon != null ? Color.white : new Color(1f, 1f, 1f, 0f);
}
if (specialSkillName != null)
{
specialSkillName.text = groupName ?? string.Empty;
}
}
}