Ejemplo n.º 1
0
    public static void Save(PortesArmari portesArmari)
    {
        string           jsonPath = Application.persistentDataPath + "/portesArmari.json";
        PortesArmariData data     = new PortesArmariData(portesArmari);
        string           json     = JsonUtility.ToJson(data);

        File.WriteAllText(jsonPath, json);
        Debug.Log("Save " + json);
    }
Ejemplo n.º 2
0
 public PortesArmariData(PortesArmari portesArmari)
 {
     index = portesArmari.index;
 }