Example #1
0
    public void harvesting()
    {
        int countFruits = plantProperties.getCountFruits();

        if (countFruits > 0)
        {
            //put fruit into inventory
            plantProperties.setArrFruits(countFruits, false);
            plantProperties.setCountFruits(countFruits - 1);
        }
    }