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

            PointerExit?.Invoke(this);

            if (ShowTooltip)
            {
                SkillTooltip.Instance.Hide();
            }
        }
Beispiel #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));
 }