Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Convert GameObject in CarControl

$
0
0
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.

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>