public Food(string name, FoodType.Type type, Sprite unPreppedSprite, Sprite preppedSprite, Sprite burntSprite) { this.name = name; this.type = type; this.unPreppedSprite = unPreppedSprite; this.preppedSprite = preppedSprite; this.burntSprite = burntSprite; }
public JsonFoodContainer GetJsonFood(FoodType.Type foodType) { switch (foodType) { case FoodType.Type.main: return(mainsList); case FoodType.Type.topping: return(toppingsList); case FoodType.Type.drink: return(drinksList); default: throw new System.Exception("Invalid foodtype config retrieval"); } }