public Food DescribeNewPeelAction(int stepNumber, Food foodToBePeeled) { Peel action = new Peel(stepNumber, foodToBePeeled); _actions.Add(action); totalStepCount++; return(action.GetResultedFood()); }
public Food DescribeNewPeelAction(int stepNumber, string identifier) { Food f = new Food(identifier); _initialFoods.Add(f); Peel action = new Peel(stepNumber, f); _actions.Add(action); totalStepCount++; return(action.GetResultedFood()); }
public Food DescribeNewPeelAction(int stepNumber, GameObject foodObject) { Food f = new Food(foodObject.GetComponent <FoodStatus>().foodIdentifier); _initialFoods.Add(f); Peel action = new Peel(stepNumber, f); _actions.Add(action); totalStepCount++; return(action.GetResultedFood()); }