fix school dialog option

This commit is contained in:
Vova
2023-12-18 22:55:58 +02:00
parent d9b84788e1
commit 22149e24c8
5 changed files with 210 additions and 20 deletions
+7 -7
View File
@@ -31,16 +31,16 @@ public class EducationItemUI : MonoBehaviour, IDialogItemUI ,IPointerEnterHandl
_price.text = $"{_item.EnrollPrice}$";
_icon.sprite = item.Icon;
_button.enabled = true;
_button.onClick.AddListener(() => {
if (_button.enabled)
{
_parent.OnItemSelected(this);
}
});
}
public void Click()
{
if (_button.enabled)
{
_parent.OnItemSelected(this);
}
}
public void OnPointerEnter(PointerEventData eventData)
{