// Start is called before the first frame update void Start() { DataPersistenceManager.saveJson(this, Application.persistentDataPath + "Prueba.json"); Player p = DataPersistenceManager.loadJson <Player>(Application.persistentDataPath); Debug.Log(Application.persistentDataPath); }
public override void Initialize() { base.Initialize(); _previousTimeScale = Time.timeScale; // Request the providers required _dataPersistance = ManagerProvider.Get <DataPersistenceManager>(); _transitionManager = ManagerProvider.Get <SceneTransitionManager>(); _spawnerManager = ManagerProvider.Get <SpawnerManager>(); HighScore = _dataPersistance.PlayerData.CurrentHighScore; }
private void OnWizardCreate() { // foreach (Component b in Selection.activeGameObject.GetComponents()) DataPersistenceManager.saveJson(Selection.activeObject, Application.persistentDataPath + Selection.activeObject.name + ".json"); }