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.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
6 People are following this question.
Referencing a struct/class From Another Script
A node in a childnode?
Emptying a Generic List / Unexpected Behaviour
Nullreferenceexception, Struct, Array, List
Transform syntax error