|
hello i have been following the tutorial of burgzerg arcade until i face with problem using List<> component i m currently using unity 3.2 the code line gives error is " private List _lootItems; " and i already have "using System.Collections.Generic; " defined at top compiler still gives error as "the type or namespace name 'Item' could not be found. Are u missing a using directive or an assembly reference" in tutorial video of burgzerg script can be compiled with no error why am i getting this error since i use the exact same code thanx in advance.
(comments are locked)
|
|
Do you have a class defined with the name "Item" in your project? And I think your list declaration would have to look like this: Yeah, I would say that's the problem. You try to create a
Apr 04 '11 at 10:57 AM
Bunny83
i m sorry i posted wrong script it was already as you typed private List _lootItems; but still error, in tutorial he doesnt have Item class but as you said he most probably has that Item class as public from other script and calling it in this script, thanx for reply i ll try to solve with ur answer:)
Apr 05 '11 at 12:38 AM
seyyid
(comments are locked)
|
|
i fixed it Item stands for a script he hase made and i heve it here (please learn to format your code by marking it and hitting the little 101010 button; I did it for you this time...)
Jul 05 '12 at 08:36 PM
SisterKy
(comments are locked)
|
