Exemple #1
0
        public static VirtualFolderList CreateFromString(string jsonString)
        {
            VirtualFolderList list = JsonUtility.FromJson <VirtualFolderList>(jsonString);

            list.LoadFromString();
            return(list);
        }
        private void CreateData()
        {
            if (!File.Exists(configPath))
            {
                m_VirtualFolderList = new VirtualFolderList();
                return;
            }
            string json = File.ReadAllText(configPath);

            m_VirtualFolderList = VirtualFolderList.CreateFromString(json);
        }