yyl
2025-05-22 8ad0800aa926e02e05f63aa5cbf030251850a293
Main/Config/ConfigBase.cs
@@ -52,6 +52,8 @@
    public static void Init(string[] lines)
    {
        dic.Clear();
        Dictionary<string, string> rawDatas = new Dictionary<string, string>();
        for (int i = 3; i < lines.Length; i++)
@@ -67,7 +69,19 @@
            T config = new T();
            U key = config.LoadKey(strKey);
            config.LoadConfig(line);
            #if UNITY_EDITOR
            try
            {
            #endif
            dic.Add(key, config);
            #if UNITY_EDITOR
            }
            catch (ArgumentException exception)
            {
                Debug.LogError(typeof(T).Name  + " 重复的key " + key + " " + exception.Message);
            }
            #endif
        }
        isInit = true;