ActiveTransportLoader.checkActiveTransportInt C# (CSharp) Method

checkActiveTransportInt() private method

private checkActiveTransportInt ( string value ) : int
value string
return int
    private int checkActiveTransportInt(string value)
    {
        if (String.IsNullOrEmpty(value))
          {
        Debug.Log("Error: Empty field");
        return 0;
          }
        return (int.Parse(value));
    }