Esempio n. 1
0
        // Use this for initialization
        private void Start()
        {
            Recipe r = Recipe.LoadRecipe(recipeString);

            SetRecipe(r);
            simulationController.SetRecipeToControl(r);
            UseActionList(r.GetActions());
        }
Esempio n. 2
0
        void Start()
        {
            Recipe r = Recipe.LoadRecipe(recipeNameToLoad);

            foreach (Action a in r.GetActions())
            {
                if (a is Chop)
                {
                    Chop c = (Chop)a;

                    print(c);
                }
            }

            foreach (Food f in r.GetInitialFoods())
            {
                print(f.GetFoodIdentifier());
            }
        }