예제 #1
0
 private void ShowToolTip()
 {
     if (onHover)
     {
         ItemToolTip.Show(name, description);
     }
 }
예제 #2
0
        private void Awake()
        {
            if (instance != null)
            {
                Destroy(gameObject);
                return;
            }

            instance = this;
            ItemToolTip.Initialize(this);
        }
예제 #3
0
 private void OnDestroy()
 {
     button.onClick.RemoveAllListeners();
     ItemToolTip.Hide();
 }
예제 #4
0
 public void OnPointerExit(PointerEventData eventData)
 {
     onHover = false;
     CancelInvoke(nameof(ShowToolTip));
     ItemToolTip.Hide();
 }