Inheritance: RecipeModule.Action
Ejemplo n.º 1
0
        public Food DescribeNewSqueezeAction(int stepNumber, Food foodToBePeeled)
        {
            Squeeze action = new Squeeze(stepNumber, foodToBePeeled);

            _actions.Add(action);

            totalStepCount++;

            return(action.GetResultedFood());
        }
Ejemplo n.º 2
0
        public Food DescribeNewSqueezeAction(int stepNumber, string identifier)
        {
            Food f = new Food(identifier);

            _initialFoods.Add(f);

            Squeeze action = new Squeeze(stepNumber, f);

            _actions.Add(action);

            totalStepCount++;

            return(action.GetResultedFood());
        }
Ejemplo n.º 3
0
        public Food DescribeNewSqueezeAction(int stepNumber, GameObject foodObject)
        {
            Food f = new Food(foodObject.GetComponent <FoodStatus>().foodIdentifier);

            _initialFoods.Add(f);

            Squeeze action = new Squeeze(stepNumber, f);

            _actions.Add(action);

            totalStepCount++;

            return(action.GetResultedFood());
        }