Ive got some code here that utilises a dictionary construct. And in this dictionary construct i have specified a gameobject as the key type and a GENERIC list of type component as the value type. However i seem to be recieving some compile errors. I just want to make sure that i am using the types correctly... I am getting these sort of compile errors;
Insert "semi colon on line 1" (which i already have),and for line 8, i get 3 errors "expecting > found >>" ," expecting > found ("," expecting ( found )"..
Also is looping over a dictionary the same as looping through a hashtable?
Thanks alot in advance
The code i have is here.
asked Apr 05 '12 at 02:04 AM
honestly i cant believe this , but by adding a space to line 8 it removes 3 of the compilor errors.
I have no idea why that worked, which is annoying...... :S
I am still getting the import decleration compile error though........... better start checking spaces :/ it expects a semi colon at the end, but i alrady have it :/
answered Apr 05 '12 at 02:30 AM