Пример #1
0
    private void SaveScene()
    {
        SeriazableScene serializedScene = new SeriazableScene()
        {
            currentScene = _currentScene
        };

        SaveLoad.Save <SeriazableScene>(serializedScene, "Scene");
    }
Пример #2
0
 public void Run()
 {
     if (SaveLoad.SaveExists("Scene"))
     {
         SeriazableScene serializedScene = SaveLoad.Load <SeriazableScene>("Scene");
         int             savedScene      = serializedScene.currentScene;
         SceneManager.LoadScene(savedScene);
         Statics.isLoadedGame = true;
     }
 }