public void setSerovodorot(string value) { if (!value.Equals("")) { if (SerovodorodDay_toggle.isOn == false) { allDay_Now.setSerovodorotDay(float.Parse(value)); SerovodorodDay_text.text = "День : " + value; } else { allDay_Now.setSerovodorotNight(float.Parse(value)); SerovodorodnNight_text.text = "Ночь : " + value; } } }