Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

i cant activate my car controller script after countdown ends from one script to another actually I am new to unity and cant get rid of this

$
0
0
public class carmanager : MonoBehaviour { public public GameObject carcontrol; void start() { carcontrol = GetComponent (); carcontrol.enabled = true; } } getting error like this; Assets\myscript\carmanager.cs(10,35): error CS0246: The type or namespace name 'Car_Controller' could not be found (are you missing a using directive or an assembly reference?) Assets\myscript\carmanager.cs(11,20): error CS1061: 'GameObject' does not contain a definition for 'enabled' and no accessible extension method 'enabled' accepting a first argument of type 'GameObject' could be found (are you missing a using directive or an assembly reference?)

Viewing all articles
Browse latest Browse all 2891

Trending Articles



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