Ejemplo n.º 1
0
 public static DetectManager GetInstance()
 {
     if (instance == null)
     {
         instance = new DetectManager();
     }
     return(instance);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 初始化【侦探模式】数据
        /// </summary>
        private void InitDetects()
        {
            Dictionary <string, DetectEvent> events = DetectManager.GetStaticDetectEvents();

            datapool.WriteStaticVar("侦探事件表", events);

            detectManager = DetectManager.GetInstance();
            detectManager.Init(events, this);
        }
Ejemplo n.º 3
0
        public void Init(DetectEvent detectEvent)
        {
            detectManager = DetectManager.GetInstance();
            uiManager     = root.transform.Find("Avg_Panel/Invest_Panel").GetComponent <DetectUIManager>();

            factory          = NodeFactory.GetInstance();
            this.detectEvent = detectEvent;

            //Debug.Log(detectManager.CurrentPlace());
            uiManager.SetDetectNode(this, detectEvent.sections, detectManager.currentPlace, detectEvent.id);
        }
Ejemplo n.º 4
0
        public DetectJudgeNode(DataManager manager, GameObject root, PanelSwitch ps, string eventName, AvgPanelSwitch avgps)
            : base(manager, root, ps)
        {
            detectManager = DetectManager.GetInstance();
            detectEvent   = detectManager.LoadEvent(eventName);

            factory = NodeFactory.GetInstance();

            if (detectManager.IsCurrentEventFinished())
            {
                Update();
            }
            else
            {
                ps.SwitchTo_VerifyIterative("Invest_Panel", Update);
            }
        }
Ejemplo n.º 5
0
 /// <summary>
 /// 初始化【侦探模式】数据
 /// </summary>
 private void InitDetects()
 {
     staticData.detectEvents = StaticManager.GetStaticDetectEvents();
     DetectManager.GetInstance().Init(this);
 }