private void Start() { foreach (Gear n in gear) { ShopSlot temp = Instantiate(shopSlotPrefab, layoutGroup.transform).GetComponent <ShopSlot>(); temp.EquipItem(n); } }