Hello, I have a problem with my for loop :
GameObject[] x;
Transform[] y;
Rigidbody rigidbody;
for (int i; i < x.Length; i++)
{
rigidbody.AddforceAtPosition(x_.vector,y*);*_
}
The vector is a property of x. Unity refuses to recognize x and y inside the loop, even though I have already defined them.
What do ?