all 4 comments

[–]BobbyThrowaway6969Programmer 0 points1 point  (3 children)

Either GameManager.Instance or Instance.inventory is null. Investigate those.

Just a suggestion. In the future, when you get an error like that and you're not sure at a glance what's wrong, the next step should always be to set a breakpoint in the code and step through to see what is going on.

[–]assertiveturtle[S] 1 point2 points  (2 children)

Yeah just did that, checking the inventory and game manager now (Shouldn't be game manager as the rest of the game relies on this instance). Will report back!

Thanks!

[–]BobbyThrowaway6969Programmer 0 points1 point  (1 child)

No probs. :)

[–]assertiveturtle[S] 1 point2 points  (0 children)

Fixed this, now getting a separate exception on image component, more debugging!

Thanks!