예제 #1
0
        public void SubtractInventory()//exemption??
        {
            string itemSelection = gameRecipe.GetItemSelection();

            for (int index = 1; index <= GetInventoryAmount(); index++)
            {
                if (itemSelection == "lemons")
                {
                    gameInventory.gameLemons.RemoveAt(0);
                }
                else if (itemSelection == "ice cubes")
                {
                    gameInventory.gameIceCubes.RemoveAt(0);
                }
                else if (itemSelection == "sugar cubes")
                {
                    gameInventory.gameSugarCubes.RemoveAt(0);
                }
                else if (itemSelection == "cups")
                {
                    gameInventory.gameCups.RemoveAt(0);
                }
            }
        }