public void ClearItemDetail() { if (Indecator != null) { Indecator.SetActive(true); } if (itemDetailList == null) { return; } for (int i = 0; i < itemDetailList.Count; i++) { ItemDetail idt = itemDetailList[i].GetComponent <ItemDetail>(); idt.DestroyTexture(); Destroy(itemDetailList[i].gameObject); } itemDetailList.Clear(); ItemMoveMent = 0; }
public void ClearShelfItem() { StopCoroutine("SnappingItem"); content.HideContent(); if (ShelfItemList == null) { return; } for (int i = 0; i < ShelfItemList.Count; i++) { ItemDetail idt = ShelfItemList[i].GetComponent <ItemDetail>(); idt.DestroyTexture(); Destroy(ShelfItemList[i]); } ShelfItemList.Clear(); PrevPageArrow.gameObject.SetActive(false); NextPageArrow.gameObject.SetActive(false); ItemMoveMent = 0; if (Indecator != null) { Indecator.SetActive(true); } }