private void ClosingMain(object sender, CancelEventArgs e) { List <SoundStore> soundStores = new List <SoundStore>(); foreach (Sound sound in sounds) { soundStores.Add(new SoundStore(sound)); } SerializeManager.Save(soundStores); }
// Start is called before the first frame update void Start() { DataArrowList listArrow = new DataArrowList(); DataArrow one = new DataArrow("1", "r", "0"); DataArrow two = new DataArrow("1", "r", "1"); listArrow.listData.Add(one); listArrow.listData.Add(two); string dataAsJson = JsonUtility.ToJson(listArrow); //Debug.Log(dataAsJson); SerializeManager.Save("Assets/GameDEVJAM/JsonSong/Newcsvjson.json", dataAsJson); Read(sPath); }