Quantcast
Channel: Answers by "Graham-Dunnett"
Viewing all articles
Browse latest Browse all 959

Answer by Graham Dunnett

$
0
0
When you do GetComponent() it's 100% important that you check the return value. If you do: function start() { mn = GetComponent("MegaNoise"); Debug.Log(mn); } then you'll learn something important. (Which to save you the time, is that this function won't be executed. Because its function name is incorrect. Lower-case 's' is your error.)

Viewing all articles
Browse latest Browse all 959

Trending Articles



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