public static EnquireManager GetInstance() { if (instance == null) { instance = new EnquireManager(); } return(instance); }
/// <summary> /// 初始化【询问模式】数据 /// </summary> private void InitEnquire() { Dictionary <string, EnquireEvent> events = EnquireManager.GetStaticEnquireEvents(); datapool.WriteStaticVar("询问总表", events); enquireManager = EnquireManager.GetInstance(); enquireManager.Init(events, this); }
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); }
/// <summary> /// 初始化【询问模式】数据 /// </summary> private void InitEnquire() { staticData.enquireEvents = StaticManager.GetStaticEnquireEvents(); EnquireManager.GetInstance().Init(this); }