public Food DescribeNewSqueezeAction(int stepNumber, Food foodToBePeeled) { Squeeze action = new Squeeze(stepNumber, foodToBePeeled); _actions.Add(action); totalStepCount++; return(action.GetResultedFood()); }
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()); }
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()); }