void OnEndDrag(Vector3 position) { DragStateData stateData = new DragStateData(); stateData.position = position; stateData.dragState = DragState.OnEnd; stateData.hashObjectDragged = m_DraggablePad.gameObject.GetHashCode(); Dispatcher.Dispatch(Payload <ActionTypes> .From(ActionTypes.EndDrag, stateData)); m_AnchorSelection.OnEndDragPad(); }
void OnEndDrag(Vector3 position) { m_OnDrag = false; DragStateData buttonStateData = new DragStateData(); buttonStateData.position = position; buttonStateData.dragState = DragState.OnEnd; buttonStateData.hashObjectDragged = m_DraggablePad.gameObject.GetHashCode(); Dispatcher.Dispatch(SetDragStateAction.From(buttonStateData)); m_AnchorSelection.OnEndDragPad(); }