Пример #1
0
    public void AcceptDataAt(int index, Data box)
    {
        if (GetCount() <= index || box == null)
        {
            return;
        }
        DataSlot boxBeReplaced = slotsTransform.GetChild(index).GetComponent <DataSlot>();

        if (boxBeReplaced.data)
        {
            boxBeReplaced.RemoveData();
        }
        box.transform.SetParent(slotsTransform.GetChild(index));
    }
Пример #2
0
 public void DropdownData()
 {
     dslot.RemoveData();
 }