// Start is called before the first frame update
    void Start()
    {
        timeToGrow = false;

        doneGrowing = false;

        timeCountingDown = countDownTime = Random.Range(maxGrowthRange, maxGrowthRange);

        plantStates = GlobalVariables.PlantStates.Growing;

        //plantPartsNum = 0;

        foreach (GameObject part in growingPlant)
        {
            part.SetActive(false);
        }
    }
    public bool Growing()
    {
        //Debug.Log("The number of Plants are: " + growingPlant.Length);
        //int i = plantPartsNum;

        plantPartsNum = 0;

        foreach (GameObject plant in growingPlant)
        {
            //Debug.Log("Plant count: " + i);
            //plantPartsNum++;
            plantPartsNum++;
            if (!plant.activeSelf)
            {
                plant.SetActive(true);
                timeToGrow = false;
                return(false);
            }
        }
        doneGrowing = true;

        plantStates = GlobalVariables.PlantStates.DoneGrowing;
        return(true);
    }