コード例 #1
0
        public Food DescribeNewPeelAction(int stepNumber, Food foodToBePeeled)
        {
            Peel action = new Peel(stepNumber, foodToBePeeled);

            _actions.Add(action);

            totalStepCount++;

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