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.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
To help users post good questions and use the site effectively we have posted a user guide. Please check it out.
Answers and Comments
6 People are following this question.
A node in a childnode?
Referencing a struct/class From Another Script
How to Create a list with initial capacity
Initialized List of capacity 2 thinks that position 1 is out of range
how to add list after removing some