Quantcast
Channel: Answers for "global variable problem"
Browsing latest articles
Browse All 4 View Live

Answer by diabloroxx

I don't think you have defined speedometre in the myspeed.js file. If you are referencing the speedometre from the speedtest script, then use GetComponent to get the script and then access the variable.

View Article



Answer by Jesus_Freak

or if you have the scipts on different gameObjects, you're referencing the wrong scripts! in the myspeed, you have myspeed.speedometeryou don't need that. if you're trying to reference the speed of the...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images