Ejemplo n.º 1
0
    //슬롯에서 슬롯끼리 EndDrag되었을 때 발동
    public void OnDrop(PointerEventData eventData)
    {
        if (DragSlot.instance.dragSlot != null) //item null참조 방지
        {
            ChangeSlot();

            if (isQuickSlot)//인벤토리에서 퀵슬롯으로(혹은 퀵슬롯에서 퀵슬롯으로)
            {
                theItemEffectDatabase.IsActivatedQuickSlot(quickSlotNumber);
            }
            else //인벤토리->인벤토리, 퀵슬롯->인벤토리
            if (DragSlot.instance.dragSlot.isQuickSlot)    //퀵슬롯->인벤토리
            {
                theItemEffectDatabase.IsActivatedQuickSlot(DragSlot.instance.dragSlot.quickSlotNumber);
            }
        }
    }
    public void OnDrop(PointerEventData eventData)
    {
        if (DragSlot.instance.dragSlot != null)
        {
            ChangeSlot();

            // 인벤토리 >> 퀵슬롯 혹은 퀵슬롯 >> 퀵슬롯
            if (isQuickSlot)
            {
                // 활성화된 퀵슬롯? 교체작업
                theItemEffectDatabase.IsActivatedQuickSlot(quickSlotNumber);
            }
            // 인벤토리 >> 인벤토리 혹은 퀵슬롯 >> 인벤토리
            else
            {
                // 퀵슬롯 >> 인벤토리
                if (DragSlot.instance.dragSlot.isQuickSlot)
                {
                    // 활성화된 퀵슬롯? 교체작업
                    theItemEffectDatabase.IsActivatedQuickSlot(DragSlot.instance.dragSlot.quickSlotNumber);
                }
            }
        }
    }