예제 #1
0
 public static EnquireManager GetInstance()
 {
     if (instance == null)
     {
         instance = new EnquireManager();
     }
     return(instance);
 }
예제 #2
0
        /// <summary>
        /// 初始化【询问模式】数据
        /// </summary>
        private void InitEnquire()
        {
            Dictionary <string, EnquireEvent> events = EnquireManager.GetStaticEnquireEvents();

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

            enquireManager = EnquireManager.GetInstance();
            enquireManager.Init(events, this);
        }
예제 #3
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);
        }
예제 #4
0
 /// <summary>
 /// 初始化【询问模式】数据
 /// </summary>
 private void InitEnquire()
 {
     staticData.enquireEvents = StaticManager.GetStaticEnquireEvents();
     EnquireManager.GetInstance().Init(this);
 }