Esempio n. 1
0
 private void Awake()
 {
     //Singleton
     if (Instance == null)
     {
         Instance = this;
     }
     else if (Instance != this)
     {
         Destroy(this);
     }
 }
Esempio n. 2
0
        public Ingredients Filter(IngredientChecker check)
        {
            Ingredients recipes = new Ingredients();

            foreach (Ingredient item in this)
            {
                if (check(item))
                {
                    recipes.Add(item);
                }
            }
            return(recipes);
        }
Esempio n. 3
0
 public IngredientCheckTests()
 {
     checker = new IngredientChecker();
 }