Beispiel #1
0
 public void UpdateShop()
 {
     foreach (Transform child in showcaseContainer.transform)
     {
         UI_ShopShowcase showcase = child.gameObject.GetComponent <UI_ShopShowcase>();
         showcase.UpdateDisplay();
     }
 }
Beispiel #2
0
 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);
             }
         }
     }
 }