public void findspecific(int winnerx, int winnery)
{
string ineed = "tb" + winnerx + winnery;
ineed.text = "Something"; // --> this line isn't work because "ineed" is a string.
}
所有文本框名称都以“tb”开头,winnerx 和winnery 数字一起找到获胜者所在的文本框我不能使用ineed.Text,因为它是一个字符串而不是按钮引用。如何使用“ineed”字符串变量引用 tb(x)(y) 按钮?