//Porta pedra public static void SavePortaPedra(PortaPedraGObj _data) { string jsonPath = Application.persistentDataPath + "/portaPedra.json"; PortaPedraData data = new PortaPedraData(_data); string json = JsonUtility.ToJson(data); File.WriteAllText(jsonPath, json); Debug.Log("Save " + json); }
public PortaPedraData(PortaPedraGObj portaPedraGobj) { index = portaPedraGobj.index; setActive = portaPedraGobj.setActive; }