コード例 #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);
 }