public ShopWindow(Animal[] animals, Node parentNode) : base(parentNode) { foreach (var animal in animals) { ShopListButton shopListButton = new ShopListButton(Texture.SeedButton, animal.id, animal.money, ShopListButton.Type.Animal); shopListButtons.Add(shopListButton); } }
public ShopWindow(Food[] foods, Node parentNode) : base(parentNode) { foreach (var food in foods) { ShopListButton shopListButton = new ShopListButton(Texture.SeedButton, food.id, food.money, Function.String2Quolity(food.quolity)); shopListButtons.Add(shopListButton); } }
public ShopWindow(Seed[] seeds, Node parentNode) : base(parentNode) { foreach (var seed in seeds) { if (GameData.PlayerData.Seed.Length > seed.id) { ShopListButton shopListButton = new ShopListButton(Texture.SeedButton, seed.id, seed.money, ShopListButton.Type.Seed); shopListButtons.Add(shopListButton); } } }