装备系统做了很多

This commit is contained in:
2026-03-27 08:02:55 +08:00
parent dd205b6cb4
commit 538085b64f
119 changed files with 27552 additions and 1672 deletions
+30
View File
@@ -0,0 +1,30 @@
using UnityEngine;
using UnityEngine.UI;
public class eqpmtSkillPrefabItem : MonoBehaviour
{
public int skillId;
public Image skillIcon;
public Text skillName;
public Text skillIdText;
public void Bind(int id)
{
skillId = id;
if (skillName != null)
{
skillName.text = $"Skill {skillId}";
}
if (skillIdText != null)
{
skillIdText.text = skillId.ToString();
}
if (skillIcon != null)
{
skillIcon.enabled = skillIcon.sprite != null;
}
}
}