I am trying to convert my string variable to an integer to add a value (+1) to it but the result I get is:
1111
Infact I should be getting a total of 4 when I reconvert it to string.
What am I doing wrong?
public string str_Val = "1";
void Update () {
if (str_Val != "5") {
str_Val = int.Parse (str_Val + 1).ToString ();
}
}