I'm new to Unity.
I have an array of GameObjects which I declared using
var shades:GameObject[];
Now, I had to convert this to an Array using
var allShades =new Array(shades);
but it seems like the gameObjects have turned in Objects because I can no longer use, for example
allShades[index].GetComponent(MyScript);
It gives me this error: 'GetComponent' is not a member of 'Object'
I'm not even sure of all the things that I have done here, hehe!
I have been googling but I can't find the solution for this.
Any help Pls?? Thank you! :)