public void AddSugar(int amount) { for (int i = 0; i < amount; i++) { sugarCubes.Add(sugar = new Sugar(.01, 0, 1)); } }
public Inventory() { cup = new Cups(.15, 0, 8); sugar = new Sugar(.01, 0, 1); ice = new Ice(.01, 7, 1); lemon = new Lemon(.55, 30, 3); allItems = new List <Item> { lemon, ice, sugar, cup }; lemons = new List <Item>() { }; iceCubes = new List <Item>() { }; sugarCubes = new List <Item> { }; cups = new List <Item> { }; recipeItems = new List <string>() { }; }
public void AddSugar(Sugar sugar) { supplies[1].Add(sugar); }