FarmManager.GetPlantModel C# (CSharp) Method

GetPlantModel() public method

public GetPlantModel ( string plantType ) : GameObject
plantType string
return GameObject
    public GameObject GetPlantModel(string plantType)
    {
        if (plantType == "empty") {
            return emptySite;
        }
        else
        {
            foreach(PlantModelMapEntry entry in plantModelMap)
            {
                if(string.Compare(entry.plantType, plantType, true) == 0)
                {
                    return entry.plantModel;
                }
            }
            return defaultPlantModel;
        }
    }