private void OnConfigPrepare(Asset asset, EAssetResult result) { if (result != EAssetResult.OK) { return; } // 测试打印表格数据 if (asset is CfgHero) { CfgHeroTab tab1 = CfgHero.GetCfgTab(1001); Debug.Log($"非热更新表格数据:{tab1.Name}"); CfgHeroTab tab2 = CfgHero.GetCfgTab(1002); Debug.Log($"非热更新表格数据:{tab2.Name}"); } }
public static CfgHeroTab GetCfgTab(int key) { CfgHero cfg = CfgManager.Instance.GetConfig(EConfigType.Hero.ToString()) as CfgHero; return(cfg.GetTab(key) as CfgHeroTab); }