Esempio n. 1
0
 void IPointerExitHandler.OnPointerExit(PointerEventData eventData)
 {
     if (!IsMute)
     {
         PointerExit?.Invoke();
     }
 }
Esempio n. 2
0
 public void OnPointerExit(PointerEventData eventData)
 {
     //Debug.Log("Exit");
     gazing = false;
     timer  = 0;
     if (PointerExit != null)
     {
         PointerExit.Invoke();
     }
 }
Esempio n. 3
0
        /// <summary>
        /// Initialize listener of stop pressing mouse on item's UI
        /// </summary>
        private void SetupTrigger()
        {
            _trigger = gameObject.AddComponent <EventTrigger>();

            var pointerExit = new EventTrigger.Entry {
                eventID = EventTriggerType.PointerExit
            };

            pointerExit.callback.AddListener(item => PointerExit?.Invoke(Item));
            _trigger.triggers.Add(pointerExit);
        }
Esempio n. 4
0
        public void OnPointerExit(PointerEventData pointer)
        {
            if (Slot.Skill.IsEmpty())
            {
                return;
            }

            PointerExit?.Invoke(this);

            if (ShowTooltip)
            {
                SkillTooltip.Instance.Hide();
            }
        }
Esempio n. 5
0
 public void OnPointerExit(PointerEventData eventData)
 {
     PointerExit?.Invoke(eventData, this);
 }
 public virtual void OnPointerExit(PointerEventData eventData)
 {
     PointerExit?.Invoke(this, eventData);
     ForwardToParents <IPointerExitHandler>((parent) => parent.OnPointerExit(eventData));
 }