I have a script where I have a variable of type:
var Cars: CarControl;
And I have one GameObject in the Hierarchy called "PickupRed" which possesses the "CarControl" Active scripting.
How do I put the GameObject in Cars? by code?
When I try to put:
Cars = GameObject.Find("PickupRed");
says it can not convert the GameObject in CarControl.
Someone please help me.
↧