스킬 사용

This commit is contained in:
Ino 2025-04-11 05:51:23 +09:00
parent 0df93a4238
commit 5c4faa7130
2 changed files with 4 additions and 1 deletions

View File

@ -59,6 +59,7 @@ public class SkillCard : CardCoolTimeBase, IDropHandler
{
case eUICardType.UI:
et.enabled = false;
images[0].raycastTarget = true;
images[1].GetComponent<Button>().onClick.AddListener(OnClick_SkillUI);
if (DSUtil.CheckNull(m_skillDragItem))
m_skillDragItem = images[0].gameObject.AddComponent<SkillDragItem>();
@ -66,8 +67,11 @@ public class SkillCard : CardCoolTimeBase, IDropHandler
break;
case eUICardType.Use:
et.enabled = true;
images[0].raycastTarget = false;
break;
case eUICardType.SkillTest:
et.enabled = false;
images[0].raycastTarget = false;
DSUtil.InActivateGameObjects(gos);
GetComponentInChildren<Button>().onClick.AddListener(() =>
{

View File

@ -8,7 +8,6 @@ public class TM_Skills : uScrollViewMgr
public override void Set_UI()
{
Set_ScrollView(table_skilllist.Ins.Get_TestSkillList(MyValue.MyPC.Get_ID()));
list_CardBase.ForEach(f => f.Set_CardType(eUICardType.UI));
list_CardBase.ForEach(f => f.Set_CardType(eUICardType.SkillTest));
}
}