public static void SaveLaLluna(LaLlunaCarta carta)
    {
        string      jsonPath = Application.persistentDataPath + "/laLluna.json";
        LaLlunaData data     = new LaLlunaData(carta);
        string      json     = JsonUtility.ToJson(data);

        File.WriteAllText(jsonPath, json);
    }
Beispiel #2
0
 public LaLlunaData(LaLlunaCarta laLlunaCarta)
 {
     cardName  = laLlunaCarta.cardName;
     cardState = laLlunaCarta.stateCard;
 }