Esempio n. 1
0
 public UIButton()
 {
     onDown  = new OnPointerDownEvent();
     onUp    = new OnPointerUpEvent();
     onEnter = new OnPointerEnterEvent();
     onExit  = new OnPointerExitEvent();
     onClick = new OnPointerClickEvent();
     onDrop  = new OnPointerDropEvent();
 }
 private void DisableSelection()
 {
     _counter--;
     if (itemSelectionImage != null && _counter <= 0)
     {
         _selectedItem = null;
         OnPointerExitEvent?.Invoke();
         itemSelectionImage.SetActive(false);
     }
 }
Esempio n. 3
0
        public override void OnPointerExit(PointerEventData eventData)
        {
            base.OnPointerExit(eventData);

            DoStateTransition(SelectionState.Normal, true);

            if (OnPointerExitEvent != null)
            {
                OnPointerExitEvent.Invoke(this, eventData);
            }
        }
 void IPointerExitHandler.OnPointerExit(PointerEventData eventData)
 {
     OnPointerExitEvent?.Invoke(eventData);
 }
Esempio n. 5
0
 public void OnPointerExit(PointerEventData eventData)
 {
     isPointerOver = false;
     OnPointerExitEvent?.Invoke(this);
 }
Esempio n. 6
0
 public void OnPointerExit(PointerEventData eventData)
 {
     OnPointerExitEvent.Invoke();
 }
Esempio n. 7
0
 protected virtual void OnPointerExit()
 {
     OnPointerExitEvent?.Invoke();
 }
Esempio n. 8
0
 private void OnPointerExit(BaseEventData eventData)
 {
     OnPointerExitEvent.Invoke();
 }
Esempio n. 9
0
 public void OnPointerExit(PointerEventData eventData)
 {
     OnPointerExitEvent?.Invoke(this);
 }
 internal static void InvokePointerExit(GameObject prevObject)
 {
     OnPointerExitEvent?.Invoke(prevObject);
 }