private void ShowToolTip() { if (onHover) { ItemToolTip.Show(name, description); } }
private void Awake() { if (instance != null) { Destroy(gameObject); return; } instance = this; ItemToolTip.Initialize(this); }
private void OnDestroy() { button.onClick.RemoveAllListeners(); ItemToolTip.Hide(); }
public void OnPointerExit(PointerEventData eventData) { onHover = false; CancelInvoke(nameof(ShowToolTip)); ItemToolTip.Hide(); }