yyl
2025-06-23 4fde46699701b1a8b74b4dab516624852b24a86d
Main/Config/ConfigBase.cs
@@ -85,6 +85,7 @@
            T config = new T();
            U key = config.LoadKey(strKey);
            config.LoadConfig(line);
            config.OnConfigParseCompleted();
            #if UNITY_EDITOR
            try
            {
@@ -97,7 +98,11 @@
                Debug.LogError(typeof(T).Name  + " 重复的key " + key + " " + exception.Message);
            }
            #endif
        }
        foreach (var cfg in dic.Values)
        {
            cfg.AllConfigLoadFinish();
        }
        isInit = true;
@@ -108,10 +113,20 @@
        return default(U);
    }
    protected virtual void AllConfigLoadFinish()
    {
    }
    public virtual void LoadConfig(string line)
    {
        
    }
    protected virtual void OnConfigParseCompleted()
    {
    }
    
    protected int ParseInt(string str)
    {