- Home /
My Project doesn't work - Generic.List throws NullReferenceException ?!
First of all you need the Project i uploaded everything in a zip file
(I'm sorry i have to do it this way but it seems i cant upload it to my homepage so i have to use share-online... i hope it's okay) http://www.share-online.biz/dl/SDC8SLJMHBY
As you can see it should be a Memory Game. The Problem is i want to match the 27 Pokemon figures + their duplicates randomly with the 54 Spheres. the Code should work in my eyes but i don't know what Unity makes with that maybe somebody can tell me whats wrong and maybe correct it for me. i'm nearly sure that the error can't be in the code... it has to be somewhere in the project thats why i uploaded the whole thing Please help me i really really need help
This isn't a project, you should export a .unitypackage, having just the asset folder is not helpful, the behavior associations are broke with all the game objects. There is one script/class in the zip file, which one of the three game objects should this be attached to? Camera? Text? etc etc. When i attach to the camera, the script throws a null(not for a list) on line 94.
On side note, your code/script could be much more $$anonymous$$imized and readable, you are doing a lot of work and loops that can be combined together to make it more readable, but that is my opinion and before you state this is a work in progress, you have placed it in a public space for others to help you, having the code hard to read doesn't help you, nor does it help that the behavior linking is busted.
i'm so sorry i didn't know that
i'm a newbie in unity and my code is just the first try but if it's failing it's useless to shorten it don't you think? i'll upload the .unitypackage in a second and edit my question... the game objects should be the 54 spheres ... ^^ if the unitypackage resolves this it's okay i'm looking after it
please help me again okay? :)
okay it might be a really stupid question but where can i create the .unitypackage?
okay i reupload the .zip file with everything i found in my project folder this is all i have :S