예제 #1
0
 public static int Add_IngredientToInventory(Ingredient newIngredient)
 {
     //Add new ingredient to end of inventory list
     m_Inventory.Add(newIngredient);
     return(m_Inventory.Count);
 }
예제 #2
0
 void Cook(Ingredient ingredient)
 {
     Thread.Sleep(ingredient.CookingTime.Value);
 }