How should one approach implementing a treasure chest system?
So, basically my game has a shop menu, and in the shop menu, I want to place 2 chest types that player can buy with in game currency. However, I haven't found a good thread on how to approach this sort of problem, that's why I'm asking here. I have two options that come to my mind:
A) Create a new scene dedicated to the chest opening process and reward the player. Load that scene when player opens a chest, save the data, load back the shop menu scene.
B) Disable everything in the shop menu, animate a chest object, reward the player, save the data, enable everything back.
I don't know which one games like Clash Royale do when they reward their player with chests. I also don't know if there are any other ways to impelement a chest opening system. All tutorials and threads I found were about how weighted rewards work, or how to add a timer to a chest, which aren't what I'm looking for. I hope someone can help me out with this.
Your answer
