public void Refresh() { for (int i = 0; i < itemList.Length; i++) { itemSlotList[i].gameObject.SetActive(true); itemSlotList[i].item = itemList[i].GetComponent <Item>(); itemSlotList[i].Assign(itemList[i]); ShopButton button = itemSlotList[i].transform.GetChild(2).GetComponent <ShopButton>(); button.buttonStatus = 0; button.ChangeButton(button, ShopButton.buttonValue.ADD); } }