Beispiel #1
0
 private void CorrectPlants()
 {
     popupTextStorageSO.ShowText(PopupTextType.Good);
     foreach (PlantType plant in Enum.GetValues(typeof(PlantType)))
     {
         var temp = ConcreteGameField.fieldPoints.FindAll(somePoint => somePoint.pointType == PointType.Free && somePoint.plantType == plant);
         if ((temp == null || temp.Count == 0) && plant != PlantType.None)
         {
             harvester.CorrectPlants();
         }
     }
 }