I have no idea what to do. Pls help.
private float[] size_itemNeeded;
void Start()
{
size_itemNeeded = new float[3]; //And it just throws array out of index exception here.
size_itemNeeded[1] = 2f;
}
I was trying it in loop, trying to make it public almost everything I know. Nothing helps.
Hope some of you know what is the problem.
Yes they are inside normal class and its C#.
↧