Exemplo n.º 1
0
    //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);
    }
Exemplo n.º 2
0
 public PortaPedraData(PortaPedraGObj portaPedraGobj)
 {
     index     = portaPedraGobj.index;
     setActive = portaPedraGobj.setActive;
 }