- Home /
Duplicate Question
Question about Lists [C#]
Hello everyone.
I have a small question, I want to create a List containing all my Skills info.
Obviously when I tried doing private List Skills;
it didn't work. So let's say for instance I have a skill called "Swords" and this skill holds, currentLevel,currentExp,expToLevelUp variables, How would I define a type of list to store The skill sword ( along with the other skills ), I recall someone mentioning and briefly explaining matrices , could that perhaps be used in this case, and if so, how?
Please answer as soon as possible as I need to get this game project done asap and this is slowing me down, Thanks!
How to declare and use Generic Lists has been covered many times on this site. In addition declaring and using Generic Lists are covered on numerous .NET and C# sites. Please search for answers before posting questions.
You will find information on using a variety of collection in Unity here:
In addition you'll want to search out information on:
How to declare and use classes
And perhaps how to declare and use structs (alternate to classes for individual entries)