Example #1
0
 public virtual void OnPointerUp(UIInputEventArgs eventArgs)
 {
     if (isSelected)
     {
         DoStateTransition(SelectionState.Highlighted, false);
     }
 }
Example #2
0
    public override void OnPointerUp(UIInputEventArgs eventData)
    {
        if (interactable)
        {
            _onClick.Invoke();
        }

        base.OnPointerUp(eventData);
    }
Example #3
0
 public override void OnDeselect(UIInputEventArgs eventData)
 {
     _onDeSelect.Invoke();
     base.OnDeselect(eventData);
 }
Example #4
0
 public virtual void OnDeselect(UIInputEventArgs eventArgs)
 {
     isSelected = false;
     DoStateTransition(SelectionState.Normal, false);
 }
Example #5
0
 public virtual void OnSelect(UIInputEventArgs eventArgs)
 {
     isSelected = true;
     DoStateTransition(SelectionState.Highlighted, false);
 }
Example #6
0
 public virtual void OnPointerDown(UIInputEventArgs eventArgs)
 {
     DoStateTransition(SelectionState.Pressed, false);
 }