Пример #1
0
    public void Reset()
    {
        if (previousDragDropHolder != null && previousHolderIndex >= 0)
        {
            previousDragDropHolder.Insert(this, previousHolderIndex);
        }

        previousDragDropHolder = null;
        previousHolderIndex    = -1;
    }
Пример #2
0
    private void OnDropObject(DragDropObject ddObject)
    {
        //If current inside a drop holder
        if (currentDropHolder != null)
        {
            currentDropHolder.Insert(ddObject);

            TaskDataSlot task = GetTaskData(ddObject);
            if (task != null && currentDropHolder.mount)
            {
                taskDataSlots.Add(task);
                UpdateCalculationResult();
            }
        }
        else
        {
            ddObject.Reset();
        }

        NotifyUIRelease();
        currentDragObject = null;
    }