예제 #1
0
 void IPointerExitHandler.OnPointerExit(PointerEventData eventData)
 {
     if (!IsMute)
     {
         PointerExit?.Invoke();
     }
 }
예제 #2
0
 public void OnPointerExit(PointerEventData eventData)
 {
     //Debug.Log("Exit");
     gazing = false;
     timer  = 0;
     if (PointerExit != null)
     {
         PointerExit.Invoke();
     }
 }
예제 #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);
        }
예제 #4
0
        public void OnPointerExit(PointerEventData pointer)
        {
            if (Slot.Skill.IsEmpty())
            {
                return;
            }

            PointerExit?.Invoke(this);

            if (ShowTooltip)
            {
                SkillTooltip.Instance.Hide();
            }
        }
예제 #5
0
 public virtual void OnPointerExit(PointerEventData eventData)
 {
     PointerExit.SafeInvoke(eventData);
 }
예제 #6
0
 public void OnPointerExit(PointerEventData eventData)
 {
     PointerExit?.Invoke(eventData, this);
 }
예제 #7
0
 public virtual void OnPointerExit(PointerEventData eventData)
 {
     PointerExit?.Invoke(this, eventData);
     ForwardToParents <IPointerExitHandler>((parent) => parent.OnPointerExit(eventData));
 }