コード例 #1
0
    public void StartDragging(Slot slot, Vector2 fingerPos)
    {
        //Shake the phone - hoping to emulate the feel of android drag and drop
        Vibration.Vibrate(vibrationMillis);

        //Delegate the actual dragging to the drag manager
        dragManager.StartDragging(LookupSlot(slot), slot == Slot.LEFT ? 1 : -1, fingerPos);
    }
コード例 #2
0
 private void OutputOnStartDrag(object sender, MouseButtonEventArgs e)
 {
     _dragManager = _outputDragManager;
     _dragManager.StartDragging(sender, e);
 }