public void Clear() { PolutionArea.ClearStatic(); DeforestationArea.ClearStatic(); DeforestationAreas.Clear(); PolutionsWay.Clear(); }
public void StartDeforestationZone(int ID) { Cell refCell = EarthManager.Instance.Cells.Find(c => c.ID == ID); if (!refCell) { return; } if (DeforestationArea.CELLS_USED.Contains(refCell)) { refCell.SetDeforestation(true); } DeforestationArea area = DeforestationAreas.Find(pa => pa.initialCell.ID == ID); if (area != null) { area.Start(); return; } else { DeforestationArea newWay = new DeforestationArea(ID); DeforestationAreas.Add(newWay); } }