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 post good questions and use the site effectively we have posted a user guide.
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).
Answers and Comments
6 People are following this question.
Referencing a struct/class From Another Script
A node in a childnode?
Inventory System wont work
how to assign mesh.vertices ToList linq extension
What is the best way to instatiate an array of connected GameObjects?