ActiveTransportLoader.checkActiveTransportFloat C# (CSharp) Method

checkActiveTransportFloat() private method

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