Пример #1
0
    public SceneDataSettings Load()
    {
        var settings = SceneDataWriter.Load <SceneDataSettings>(GameManager.Instance.DataPath + Filename);

        if (settings != null)
        {
            return(settings);
        }

        return(this);
    }
Пример #2
0
    public SceneDataSave Load()
    {
        var save = SceneDataWriter.Load <SceneDataSave>(GameManager.Instance.DataPath + GameManager.Instance.DataSettings.Lastsave);

        if (save != null)
        {
            return(save);
        }

        return(this);
    }
Пример #3
0
 public void Save()
 {
     SceneDataWriter.Save(GameManager.Instance.DataPath + GameManager.Instance.DataSettings.Lastsave, this);
 }
Пример #4
0
 public void Save()
 {
     SceneDataWriter.Save(GameManager.Instance.DataPath + Filename, this);
 }