Ejemplo n.º 1
0
    public void SaveAsJson()
    {
        string path = Path.Combine(Application.persistentDataPath, $"{_name}.json");

        var loadSystem = new JsonSaveLoadSystem();

        loadSystem.Save(path, _currentWallet);
    }
Ejemplo n.º 2
0
    public void LoadFromJson()
    {
        string path = Path.Combine(Application.persistentDataPath, $"{_name}.json");

        var loadSystem = new JsonSaveLoadSystem();

        _currentWallet = loadSystem.Load <Wallet>(path);

        UpdateView();
    }