Ejemplo n.º 1
0
 private void setEditText()
 {
     if (_cursorChanged)
     {
         return;
     }
     _stateMachine.AddState(CursorStateMachine.State.EditText, this, _priority);
     _cursorChanged = true;
 }
 private void setResize()
 {
     if (_cursorChanged)
     {
         return;
     }
     _stateMachine.AddState(CursorStateMachine.State.ResizeHorizontal, this, _priority);
     _cursorChanged = true;
 }
Ejemplo n.º 3
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     if (_cursorChanged)
     {
         return;
     }
     _stateMachine.AddState(CursorStateMachine.State.WWW, this, _priority);
     _cursorChanged = true;
 }
Ejemplo n.º 4
0
 private void setInteraction()
 {
     if (_cursorChanged)
     {
         return;
     }
     _stateMachine.AddState(CursorStateMachine.State.Interaction, this, _priority);
     _cursorChanged = true;
 }
Ejemplo n.º 5
0
        public void OnBeginDrag(PointerEventData eventData)
        {
            if (_cursorChanged)
            {
                return;
            }
            _stateMachine.AddState(CursorState, this, Priority);
            _cursorChanged = true;

            // Blocking the event is not intended.
            // Therefore this "rethrows" the event to the next IBeginDragHandler
            rethrowBeginDrag(eventData);
        }