public void DisplayEnclosedArea(EnclosedArea enclosedArea)
    {
        ClearInspectorWindow();
        currentDisplay = InspectorText.Area;

        inspectorWindowTitle.text = $"Enclosure {enclosedArea.id + 1}";

        // THe composition is a list of float value in the order of the AtmoshpereComponent Enum
        float[] terrainComposition = enclosedArea.terrainComposition;

        string displayText = "";

        // Atmospheric info
        //displayText += "Atmospheric composition: \n";
        //foreach (var (value, index) in atmosphericComposition.WithIndex())
        //{
        //    displayText += $"{((AtmosphereComponent)index).ToString()} : {value}\n";
        //}

        foreach (var(value, index) in terrainComposition.WithIndex())
        {
            if (value == 0)
            {
                continue;
            }
            displayText += $"{((TileType)index).ToString()} : {value}\n";
        }

        //displayText += "\n";
        //displayText += $"Population count: {enclosedArea.populations.Count}\n";
        //displayText += $"Total animal count: {enclosedArea.animals.Count}\n";
        //displayText += $"Food Source count: {enclosedArea.foodSources.Count}\n";

        this.inspectorWindowText.text = displayText;
    }
    public void DisplayFoodSourceStatus(FoodSource foodSource)
    {
        ClearInspectorWindow();
        currentDisplay            = InspectorText.Food;
        inspectorWindowTitle.text = foodSource.Species.SpeciesName;

        string displayText;

        if (foodSource.isUnderConstruction)
        {
            displayText = $"Under Construction \n";
        }
        else
        {
            displayText = $"Output: {foodSource.FoodOutput}\n";

            GenerateSliders(foodSource);
        }
        this.inspectorWindowText.text = displayText;
    }
    public void DisplayPopulationStatus(Population population)
    {
        ClearInspectorWindow();
        currentDisplay            = InspectorText.Population;
        inspectorWindowTitle.text = population.species.SpeciesName;
        populationInfoText.text   = "Population: " + population.Count;

        DetailButton.SetActive(true);
        detailBackground.SetActive(false);

        if (population.GrowthStatus.Equals(GrowthStatus.stagnate))
        {
            //displayText += $"Please wait 1 day for population to get accustomed to enclosure\n";
            detailText.text = $"Please wait 1 day for population to get accustomed to enclosure";
        }
        else if (population.GrowthStatus.Equals(GrowthStatus.growing))
        {
            //displayText += $"{population.gameObject.name} population will increase in {population.DaysTillGrowth()} days\n";
            detailText.text = $"{population.gameObject.name} population will increase in {population.DaysTillGrowth()} days";
        }
        else
        {
            if (population.IsStagnate())
            {
                //displayText += $"{population.gameObject.name} is stagnate\n";
                detailText.text = $"{population.gameObject.name} is stagnate";
            }
            else
            {
                //displayText += $"{population.gameObject.name} population will decrease in {population.DaysTillDeath()} days\n";
                detailText.text = $"{population.gameObject.name} population will decrease in {population.DaysTillDeath()} days";
            }
        }
        this.inspectorWindowText.text = "";
        if (population.GrowthCalculator.calculatePredatorPreyNeed() > 0)
        {
            this.inspectorWindowText.text = $"{population.gameObject.name} looks frightened...";
        }
        GenerateSliders(population);
    }
    public void DisplayLiquidCompisition(float[] compositions)
    {
        ClearInspectorWindow();
        currentDisplay = InspectorText.Liquid;

        inspectorWindowTitle.text = "Body of Water";

        string displayText = "";

        if (compositions == null)
        {
            displayText = "Water : 0.000\n Salt : 0.000\n Bacteria : 0.000";
        }
        else
        {
            string[] liquidName = new string[] { "Water", "Salt", "Bacteria" };
            for (int i = 0; i < 3; i++)
            {
                displayText += $"{liquidName[i]} : {System.Math.Round(compositions[i] * 100, 3)}%\n";
            }
        }
        this.inspectorWindowText.text = displayText;
    }