- Home /
Storing away monsters
I'm working on a mon game (Pokemon, Digimon, Monster Rancher, etc) and i'm having a hard time figuring out how i want to handle the stored, monsters should i put them in some kind of array or list not to mention what i also have to do with their stats. can anyone suggest how to proceed?
Answer by whydoidoit · Jul 09, 2012 at 06:37 AM
It sounds like you need a class to describe monsters(possibly one for each monster, inherited from a base class) and then hold instances of that class (or those classes) in a List.
If you mark your class as Serializable then you will be able to edit the properties of the monsters in the Unity inspector.
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Referencing a struct/class From Another Script 3 Answers
Help with array/lists manipulation in Editor script 1 Answer
Button list from array 4 Answers
instantiate problem help? 1 Answer