private void Awake() { //Singleton if (Instance == null) { Instance = this; } else if (Instance != this) { Destroy(this); } }
public Ingredients Filter(IngredientChecker check) { Ingredients recipes = new Ingredients(); foreach (Ingredient item in this) { if (check(item)) { recipes.Add(item); } } return(recipes); }
public IngredientCheckTests() { checker = new IngredientChecker(); }