Exemple #1
0
    public static void Save(PortaEscala portaEscala)
    {
        string          jsonPath = Application.persistentDataPath + "/portaEscala.json";
        PortaEscalaData data     = new PortaEscalaData(portaEscala);
        string          json     = JsonUtility.ToJson(data);

        File.WriteAllText(jsonPath, json);
        Debug.Log("Save porta escala " + json);
    }
Exemple #2
0
 public PortaEscalaData(PortaEscala portaEscala)
 {
     index = portaEscala.index;
 }