Exemplo n.º 1
0
        /// <summary>
        /// 初始化【询问模式】数据
        /// </summary>
        private void InitEnquire()
        {
            Dictionary <string, EnquireEvent> events = EnquireManager.GetStaticEnquireEvents();

            datapool.WriteStaticVar("询问总表", events);

            enquireManager = EnquireManager.GetInstance();
            enquireManager.Init(events, this);
        }
Exemplo n.º 2
0
        public void Init(string eventName)
        {
            enquireManager = EnquireManager.GetInstance();
            //获取uimanager
            uiManager = root.transform.Find("Avg_Panel/Enquire_Panel").GetComponent <EnquireUIManager>();
            uiManager.transform.gameObject.SetActive(true);
            factory = NodeFactory.GetInstance();
            EnquireEvent  enquireEvent     = enquireManager.LoadEvent(eventName);
            List <string> visibleTestimony = enquireManager.LoadTestimony();

            uiManager.SetEnquireEvent(enquireEvent, visibleTestimony);
            uiManager.SetEnquireNode(this);
        }
Exemplo n.º 3
0
 /// <summary>
 /// 初始化【询问模式】数据
 /// </summary>
 private void InitEnquire()
 {
     staticData.enquireEvents = StaticManager.GetStaticEnquireEvents();
     EnquireManager.GetInstance().Init(this);
 }