Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
    // 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);
    }