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

Answer by Graham Dunnett

$
0
0
As you'll know, NullReferenceException means that you are accessing a variable that doesn't exist. Since in your case you are accessing an Array, I'd imagine that the array hasn't been created. So perhaps use Debug.Log to work out what's happening after line Player.js:22. Does that array have the size you expect? Also, at line 55, what's `tempNum` set to? I can't see it given a value anywhere. Maybe you are trying to access an Array element that's too big for the array.

Viewing all articles
Browse latest Browse all 959

Trending Articles



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