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