Esempio n. 1
0
    public static void SavePortaEntrada(PortaEntradaGobj portaEntradaGobj)
    {
        string           jsonPath = Application.persistentDataPath + "/portaEntrada.json";
        PortaEntradaData data     = new PortaEntradaData(portaEntradaGobj);
        string           json     = JsonUtility.ToJson(data);

        File.WriteAllText(jsonPath, json);
        Debug.Log("Save " + json);
    }
 public PortaEntradaData(PortaEntradaGobj portaEntradaGobj)
 {
     index = portaEntradaGobj.index;
 }