UIItemSlot.OnDrag C# (CSharp) Method

OnDrag() public method

Start dragging the item.
public OnDrag ( Vector2 delta ) : void
delta Vector2
return void
    void OnDrag(Vector2 delta)
    {
        Debug.Log("OnDrag");
        if (mDraggedItem == null && mItem != null)
        {
            UICamera.currentTouch.clickNotification = UICamera.ClickNotification.BasedOnDelta;
            mDraggedItem = Replace(null);
            NGUITools.PlaySound(grabSound);
            UpdateCursor();
        }
    }