public void OnDrag(Vector3 position)
        {
            DragStateData stateData = new DragStateData();

            stateData.position          = position;
            stateData.dragState         = DragState.OnUpdate;
            stateData.hashObjectDragged = m_DraggablePad.gameObject.GetHashCode();

            Dispatcher.Dispatch(Payload <ActionTypes> .From(ActionTypes.OnDrag, stateData));

            m_AnchorSelection.OnDragPad(stateData);
        }
Пример #2
0
        public void OnDrag(Vector3 position)
        {
            DragStateData buttonStateData = new DragStateData();

            buttonStateData.position          = position;
            buttonStateData.dragState         = DragState.OnUpdate;
            buttonStateData.hashObjectDragged = m_DraggablePad.gameObject.GetHashCode();

            Dispatcher.Dispatch(SetDragStateAction.From(buttonStateData));

            m_AnchorSelection.OnDragPad(buttonStateData);
        }