private void OnEnable() { //查询所有NPC数据 listAllStoryInfoDetails = null; listOrderStoryInfoDetails = null; listStoryTextInfo = null; NpcInfoService npcInfoService = new NpcInfoService(); mapNpcInfo.Clear(); List <NpcInfoBean> listNpcInfo = npcInfoService.QueryAllData(); foreach (NpcInfoBean itemInfo in listNpcInfo) { mapNpcInfo.Add(itemInfo.id, itemInfo); } GameItemsHandler.Instance.manager.Awake(); StoryInfoHandler.Instance.manager.Awake(); textInfoService = new TextInfoService(); storyInfoService = new StoryInfoService(); }
public override void InitData() { mStoryInfoService = new StoryInfoService(); }