Question by
Redshifted · May 02, 2017 at 01:25 PM ·
rpgdesignrpg-game
How to go about storing contents of treasure chests?
Hey there, pretty new to Unity and this is my first question here!
I've got a local database which I use to store and retrieve items, however i'm unsure how to go about storing the contents of treasure chests. As far as i'm aware I have 2 obvious options:
Have a base treasure class which I inherit from for each treasure chest within the Scene and hard-code the contents into each class from within the code or from the inspector
Have a single treasure chest class which is attached to each treasure chest within the instance and load key value pairs from a database (chest -> contents)
Hope that makes sense, looking forward to reading your answers!
Comment