public void Save()
        {
            last = this;
            string filesPath = Application.streamingAssetsPath + "/" + AssetManagerSetting.GameConstName;

            Save(filesPath);
            UnityEditor.AssetDatabase.Refresh();
            Debug.Log("[GameConstJsonGenerator]" + filesPath);
        }
        public static GameConstConfig Load(string path)
        {
            var f = new FileInfo(path);

            if (f.Exists)
            {
                var sr  = f.OpenText();
                var str = sr.ReadToEnd();
                sr.Close();

                GameConstConfig config = JsonUtility.FromJson <GameConstConfig>(str);
                return(config);
            }
            else
            {
                return(new GameConstConfig());
            }
        }
        public static void Generator()
        {
            GameConstConfig obj = new GameConstConfig();

            obj.Save();
        }
        public static GameConstConfig Load()
        {
            string filesPath = Application.streamingAssetsPath + "/" + AssetManagerSetting.GameConstName;

            return(last = Load(filesPath));
        }