Exemplo n.º 1
0
 protected void Start()
 {
     foreach (MarketItem mi in Items)
     {
         MenuEntry me = Instantiate(MenuEntryPrefab, Menu.transform);
         me.SetPrice(mi.Price);
         me.SetSprite(mi.Icon);
         me.SetEnabled(mi.Enabled);
         me.SetAction(() => { MakePurchase(mi); });
     }
 }