I have this game where the user places spheres on a board, each sphere is a game object with an attached sprite.
So far so good until i decided to add a settings screen.
To manage the screens i use Monarch and each screen is a collection.
What happens when i switch to the settings screen is that the game screen is… destroyed/unloaded? Whatever happens, each sprite is destroyed (i can see the spritec count in profiler decrease)
In the backend i keep a table with sprite references and another table with the actual game state (position occupied, which player, etc)
What is the correct way to handle the screen change?
Should i use anoher approach that avoids destroying all my sprites or this is good?
What is the best approach to restore the state?
Simply cycle on my state variables and recreate the sprites or there’s a more elegant way to do all this?
Thanks