private void LoadConfig(string configName) { string configAssetName = AssetUtility.GetConfigAsset(configName, false); m_LoadedFlag.Add(configAssetName, false); GameEntry.Config.ReadData(configAssetName, this); }
public static void LoadConfig(this ConfigComponent configComponent, string configName, LoadType loadType, object userData = null) { if (string.IsNullOrEmpty(configName)) { Log.Warning("Config name is invalid."); return; } configComponent.LoadConfig(configName, AssetUtility.GetConfigAsset(configName, loadType), loadType, Constant.AssetPriority.ConfigAsset, userData); }