/// <summary> /// 加载排行榜(覆盖当前排行榜) /// </summary> /// <param name="rankname">Rankname.</param> /// <typeparam name="T">The 1st type parameter.</typeparam> public void LoadRank(string rankname) { // 覆盖 L_RankData rankData = RootData.FindChild(rankname); if (rankData == null) { rankData = RootData.CreatChildData(rankname, "none"); } else { rankData.ClearChildren(); } XmlTool.LoadDataWihtPath <L_RankData>(ref rankData, FilePath + rankname); }