Exemplo n.º 1
0
    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();
    }
Exemplo n.º 2
0
 public override void InitData()
 {
     mStoryInfoService = new StoryInfoService();
 }