/// <summary> /// 从文件中加载数据 /// </summary> void LoadDataFromFile() { TxtManager.LoadDataFromFile <AbstractLargeRank>(FilePath.RankFilePath, (largeRank) => { RankMgr.LargeRankList.Add(largeRank); }); TxtManager.LoadDataFromFile <SkillInstance>(FilePath.SkillFilePath, (skillInstance) => { SkillTriggerMgr.skillInstanceDic.Add(skillInstance.name, skillInstance); }); TxtManager.LoadDataFromFile <AbstractItem>(FilePath.ItemFilePath, (item) => { ItemMgr.itemDic.Add(item.ID, item); }); // // foreach (var v in RankMgr.LargeRankList) // { // Debug.Log(v.name); // } }
/// <summary> /// 从文件中加载数据 /// </summary> void LoadDataFromFile() { TxtManager.LoadDataFromFile <AbstractLargeRank>(FilePath.RankFilePath, (largeRank) => { RankMgr.LargeRankList.Add(largeRank); }); }