// 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); }
private void OnWizardCreate() { // foreach (Component b in Selection.activeGameObject.GetComponents()) DataPersistenceManager.saveJson(Selection.activeObject, Application.persistentDataPath + Selection.activeObject.name + ".json"); }