private void RemoveDead() { Ants.RemoveAll(x => x.Hp <= 0); Pests.RemoveAll(x => x.Hp <= 0); Foods.RemoveAll(x => x.Hp <= 0); OpenFoods.RemoveAll(x => x.Hp <= 0); }
private void ToggleWindows(bool activation) { switch (currentWindows) { case Windows.Calendar: Calendar.SetActive(activation); break; case Windows.Ground: TypesOfGround.SetActive(activation); break; case Windows.Climate: TypesOfClimate.SetActive(activation); break; case Windows.Crops: Crops.SetActive(activation); break; case Windows.Pests: Pests.SetActive(activation); break; case Windows.Profile: Profile.SetActive(activation); break; case Windows.Tomato_info: Tomato_info.SetActive(activation); break; case Windows.General_info: General_info.SetActive(activation); break; } }