把字符串变量转换为int显示错误Input string was not in the correct format
把这个
...
int.Parse(str.Split(',')[0]);
...
改为
...
int result = 0;
int.TryParse (numText.text, out result)
Debug.Log(" result:" + result);
...
就不会显示Input string was not in the correct format