Exemple #1
0
    private void OnGift()
    {
        if (dragItemSlot == null)
        {
            return;
        }

        if (!ReferenceEquals(_giftManager, null) && !_currentNpcId.Equals(string.Empty))
        {
            //gift success
            if (_giftManager.Gift(dragItemSlot.ITEM.Id, _currentNpcId))
            {
                inv_container.Gift(dragItemSlot.INDEX);
                dragItemSlot = null;
            }
        }
    }