コード例 #1
0
        public Food DescribeNewChopAction(int stepNumber, Food foodToBeChopped, int requiredPieceCount)
        {
            Chop action = new Chop(stepNumber, foodToBeChopped, requiredPieceCount);

            _actions.Add(action);

            totalStepCount++;

            return(action.GetResultedFood());
        }
コード例 #2
0
        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());
        }
コード例 #3
0
        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());
        }