private void SaveScene() { SeriazableScene serializedScene = new SeriazableScene() { currentScene = _currentScene }; SaveLoad.Save <SeriazableScene>(serializedScene, "Scene"); }
public void Run() { if (SaveLoad.SaveExists("Scene")) { SeriazableScene serializedScene = SaveLoad.Load <SeriazableScene>("Scene"); int savedScene = serializedScene.currentScene; SceneManager.LoadScene(savedScene); Statics.isLoadedGame = true; } }