I'm developing a game where there are locked items given to the players that will automatically open after a certain period of time, similar to locked chests in the popular Supercell title Clash Royale.
I guess I have to create one catalog item for the chest given to the player, and write a variable in the custom data of the item instance to store the timestamp when the chest should open.
Is this a good approach? I couldn't find any good practice regarding this topic...
Another approach could be to create a "locked container" item and grant the player the key for that container when the time expires, but I think it's a bit more complicated.