private float checkActiveTransportFloat(string value) { if (String.IsNullOrEmpty(value)) { Debug.Log("Error: Empty field"); return 0f; } return(float.Parse(value.Replace(",", "."))); }