Quantcast
Channel: Answers by "ransomink"
Viewing all articles
Browse latest Browse all 80

Answer by ransomink

$
0
0
You're not getting the Slider component, it should be: `FuelShower = GameObject.Find("FuelShower").GetComponent();`. Also, if the game object is already in the scene, it's easier to drag it into the variable slot from the inspector as using Find is slow. If this game object is instantiated into the scene, then it's fine to use in Start to Find the object, but only then it should be used...

Viewing all articles
Browse latest Browse all 80

Trending Articles



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