My problem is the "Save Current Scene" flag on the SaveSystem does some stuff I need but other stuff I don't really like. The needed stuff is that it stores the loaded save data into memory via this line:
Code: Select all
m_savedGameData = savedGameData;
Code: Select all
public static void LoadGame(SavedGameData savedGameData)
{
if (saveCurrentScene)
{
instance.StartCoroutine(LoadSceneCoroutine(savedGameData, null));
}
else
{
ApplySavedGameData(savedGameData);
}
}
My reasons for not using the flag are that I need a little bit more power than just loading the saved single active scene. I have many scenes and a whole manager for them going on, and using this flag would kind of get in the way of all that.
Therefore, I request that you make the LoadGame method to be this:
Code: Select all
public static void LoadGame(SavedGameData savedGameData)
{
if (saveCurrentScene)
{
instance.StartCoroutine(LoadSceneCoroutine(savedGameData, null));
}
else
{
m_savedGameData = savedGameData;
ApplySavedGameData(savedGameData);
}
}