Exemplo n.º 1
0
    public SceneDataSave Load()
    {
        var save = SceneDataWriter.Load <SceneDataSave>(GameManager.Instance.DataPath + GameManager.Instance.DataSettings.Lastsave);

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

        return(this);
    }
Exemplo n.º 2
0
    public SceneDataSettings Load()
    {
        var settings = SceneDataWriter.Load <SceneDataSettings>(GameManager.Instance.DataPath + Filename);

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

        return(this);
    }