public void UpdateShop() { foreach (Transform child in showcaseContainer.transform) { UI_ShopShowcase showcase = child.gameObject.GetComponent <UI_ShopShowcase>(); showcase.UpdateDisplay(); } }
public void RefreshCropList() { cropList.Clear(); foreach (Transform child in showcaseContainer.transform) { UI_ShopShowcase refShowcase = child.gameObject.GetComponent <UI_ShopShowcase>(); if (refShowcase != null) { if (refShowcase.cropAsset != null) { cropList.Add(refShowcase.cropAsset); } } } }