for (int i = 0; i < intArray.GetLength(0); i++)
{
for (int j = 0; j < intArray.GetLength(1); j++)
{
Console.Write(intArray[i, j] + "\t");
}
Console.WriteLine();
}
for (int i = 0; i < intArray.GetLength(0); i++)
{
for (int j = 0; j < intArray.GetLength(1); j++)
{
Console.Write(intArray[i, j] + "\t");
}
Console.WriteLine();
}
本文标题:Unity二维数组的循环
本文链接:https://www.haomeiwen.com/subject/ianzohtx.html
网友评论