I have a question about loot. In this project, the game is played on a free map, and when entering combat it switches to another battle scene, somewhat similar to the '3D RPG Quickstart' tutorial. However, I want the loot to only appear after the battle ends, when returning to the free map, at the location where the combat happened, for example, a chest with the loot. Is there a simple way to achieve this?
An option that I would like would be that every time a combatant dies, items or loot table are added to a selected data of items[] and when returning to the free map, if that selected data is not empty, spawn the chest prefab and put the total loot saved in the selected data into it.