Loading Game State - How to reference the right ScriptableObject?
I have created a single Scene to handle gameplay. The scene holds a reference to a "Scenario" scriptable object instance that has all the data for the scenario you are currently playing, such as:
Scenario name
List of levels you need to run through in order to complete the scenario
List of rewards when completing the scenario
etc.
When saving the game state I save the name of the scriptable object instance (there is one for each scenario in the game) as well as the variables the game manager has to keep track of where you are in the scenario (which levels are completed already, which level are you currently at and how far along it are you, ...)
The problem I have is that I do not know how to correctly load my Scene with this design approach. How do I reference the right scriptable object in my scene based on the saved information and WITHOUT using the Resources API?
Can anyone please advise?
Your answer
