Not loading to correct scene with es3
Posted: Tue Apr 12, 2022 7:22 am
Stupide Question:
I use ES3 to save and load all the data and scene.
when I load my game in scene 1, it won't jump to scene2 where i actually saved my game.
here is my save code:
string s = PixelCrushers.SaveSystem.Serialize(PixelCrushers.SaveSystem.RecordSavedGameData());
ES3.Save("DialogData", s, "SaveFile/saver.es3");
and here is my load code:
PixelCrushers.SaveSystem.ApplySavedGameData(PixelCrushers.SaveSystem.Deserialize<PixelCrushers.SavedGameData>(ES3.Load<string>("DialogData", "SaveFile/saver.es3")));
I don't quite know where i go wrong since i 've read many the topic contains "es3" and "load"/"scene".etc.
I use ES3 to save and load all the data and scene.
when I load my game in scene 1, it won't jump to scene2 where i actually saved my game.
here is my save code:
string s = PixelCrushers.SaveSystem.Serialize(PixelCrushers.SaveSystem.RecordSavedGameData());
ES3.Save("DialogData", s, "SaveFile/saver.es3");
and here is my load code:
PixelCrushers.SaveSystem.ApplySavedGameData(PixelCrushers.SaveSystem.Deserialize<PixelCrushers.SavedGameData>(ES3.Load<string>("DialogData", "SaveFile/saver.es3")));
I don't quite know where i go wrong since i 've read many the topic contains "es3" and "load"/"scene".etc.