BCE0019: 'GetComponent' is not a member of 'Object'.

Hey I have a problem.

I’m trying to select units for my rts game. The problem is that I get this error:

BCE0019: ‘GetComponent’ is not a member of ‘Object’.

I have this line of code:

for(var i = 0; i < selectables.length;i++){
	selectables*.GetComponent(Selectable).selected = false;*

If someone could help me I would be very happy :slight_smile:

var selectables : GameObject; // or something like this.