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