-2
我有以下代码:错误CS0029不能隐式转换int类型为bool
GameObject g = Instantiate(gemPrefab,new
isMatched = true;
for (int i = 0; rows.Count; i++)
{
rows[i].isMatched = true;
}
if (collumns.Count >= AmountToMatch)
{
isMatched=true;
}
for(int i=0;collumns.Count;i++)
不过,我得到以下错误:
error cs0029 cannot implicitly convert type int to bool (107,25) and (115,25)
我怎样才能解决这个问题?
cs2009似乎是一个C#错误消息,这是有道理的,因为如果这是C++,它*应该*编译,但仍然是错误的。 – 2015-03-13 16:18:56