void OnBeginDrag(Vector3 position)
        {
            DragStateData stateData = new DragStateData();

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

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

            m_AnchorSelection.OnBeginDragPad();
        }
Esempio n. 2
0
        void OnBeginDrag(Vector3 position)
        {
            m_OnDrag = true;

            DragStateData buttonStateData = new DragStateData();

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

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

            m_AnchorSelection.OnBeginDragPad();
        }