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)); }
public void DropdownData() { dslot.RemoveData(); }