if you not specify the for loop scope by using
{}
then it will consider only the next line.
if your variable
k
is in another line below the very next line to
for
loop then you will get error
example:
for(int i=0; i<5; i++)
Console.WriteLine("My first Line");
Console.WriteLine(i);
for(int i=0; i<5; i++)
{
Console.WriteLine("My first Line");
Console.WriteLine(i);
}
update:
update method need
()
like below
void update ()
{
}
and declare
nv_data
in the same place where you declare
body
Data_struct[] nv_data;
GameObject[] body;
string[][] datas;