Quantcast
Channel: Answers by "IvovdMarel"
Viewing all articles
Browse latest Browse all 145

Answer by IvovdMarel

$
0
0
The null reference exception comes from either the SortedList being null or the UnitInfo component being null. Has your SortedList been initialized? UnitInfos = new SortedList(); Does every tagged object have a UnityInfo component? otherwise you can check this by writing if (g.GetComponent() != null) UnitInfos.Add(g.GetComponent().Reaction, g);

Viewing all articles
Browse latest Browse all 145

Trending Articles



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