feat: 스킬 편집 UI 내의 스킬 슬롯, 스킬 정보 클릭 액션 적용
This commit is contained in:
@@ -9,9 +9,6 @@ namespace TON
|
||||
{
|
||||
public class SkillInformationItem : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
SerializableDictionary<string, Sprite> imageSprites = new SerializableDictionary<string, Sprite>();
|
||||
|
||||
public GameObject skillImage;
|
||||
public TextMeshProUGUI skillName;
|
||||
public TextMeshProUGUI skillDamage;
|
||||
@@ -21,10 +18,15 @@ namespace TON
|
||||
public TextMeshProUGUI skillReqLv;
|
||||
|
||||
public GameObject locker;
|
||||
public GameObject selectedState;
|
||||
|
||||
public string skillId;
|
||||
|
||||
|
||||
public void Initalize(SkillData skillData, int playerLevel)
|
||||
{
|
||||
skillId = skillData.id;
|
||||
|
||||
skillName.text = skillData.name;
|
||||
skillDamage.text = $"{skillData.damage}";
|
||||
skillCooltime.text = $"{skillData.coolDown}";
|
||||
@@ -46,5 +48,16 @@ namespace TON
|
||||
}
|
||||
}
|
||||
|
||||
public string SelectedSkillInfo()
|
||||
{
|
||||
selectedState.SetActive(true);
|
||||
return skillId;
|
||||
}
|
||||
|
||||
public void UnselectedSkillInfo()
|
||||
{
|
||||
selectedState.SetActive(false);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user