I'm trying to finally learn C# and am trying to get a script to access an global Java array.
The array has GameObjects in it and is in the plug-ins folder so it compiles first. And I'm trying basically to convert this java code to C# so I can use an Inventory System I've already made in Java Script with my GUI that I made in C#.
Basically all the game objects have a scripts attached called "ObjectInfo" that stores their icon.
I have no idea how to do this after 2 days of trying.
Thanks for any help.
It took you two days to figure this out? ... You might want to read this:
It should clear up a lot of confusion you might have.
As for your code, C# won't implicitly cast from
Although that is an extraordinarily ugly line of code. I would make it neater:
See? Much, much easier to read and understand. :)
answered Jul 10 '10 at 09:32 AM