private void LoadConfig() { mGameConfig = GetConfigInfo <GameConfig>(GameConfigPath); string xmlPath = mGameConfig.gameConfigData.xmlPath; string xmlSheetPath = mGameConfig.gameConfigData.xmlSheetPath; //string xmlLevelPath = mGameConfig.gameConfigData.xmlLevelPath; mGameXmlGroups = GetConfigInfo <GameConfigGroups>(xmlPath); mGameXmlSheetGroups = GetConfigInfo <GameConfigGroups>(xmlSheetPath); //mGameLevelGroups = GetConfigInfo<GameConfigGroups>(xmlLevelPath); //Debug.Log("config has loaded"); }
/// <summary> /// 获取所有配置数据; /// </summary> /// <param name="xmlGroups"></param> /// <param name="xmlSheetGroups"></param> /// <param name="xmlLevelGroups"></param> public void TryGetGroups(out GameConfigGroups xmlGroups, out GameConfigGroups xmlSheetGroups) { xmlGroups = mGameXmlGroups; xmlSheetGroups = mGameXmlSheetGroups; //xmlLevelGroups = mGameLevelGroups; }