Hey all,
First of all Merry Xmas!
Im working on a project that currently has a very convoluted way of setting up and organising shop items. Each shop item is made up of the following:
- Item image (Sprite)
- Item Name (Label)
- Cost (Label)
- Script attached that tells the game what to do when the object is purchased
Currently each item is custom made as a separate game object which is super slow and time consuming to adjust and balance. The GameObjects are then set to inactive at start and then activated if the player has unlocked them in game.
What I would ideally like to be able to do is to create a database (Possibly scriptable object) that holds all this info and then instantiates the gameobjects into the shop when unlocked. I would like to be able to use a template shop item too if possible.
Any ideas of how to go about doing this? Have you come across any tutorials that explain this type of thing? I would really love to learn as I can think of many different uses for this knowledge;.
Thanks
Will