예제 #1
0
        public override void Update()
        {
            base.Update();

            for (int i = 0; i < m_cacheGuidUI.Count; i++)
            {
                GuidUI guidUI = m_cacheGuidUI[i];
                string uiName = guidUI.GetUIName();
                if (m_OpenUI.ContainsKey(uiName))
                {
                    ConfGuid confguid = guidUI.GetCurrentConf();
                    if (confguid.hideUINode.Length > 0)
                    {
                        for (int j = 0; j < confguid.hideUINode.Length; j++)
                        {
                            if (m_OpenUI.ContainsKey(confguid.hideUINode[j]))
                            {
                                GUIFrame frame = m_OpenUI[confguid.hideUINode[j]];
                                frame.LogicHandler.OnGuidShow();
                            }
                        }
                    }
                    guidUI.OnOpenUIAction(m_OpenUI[uiName]);
                    m_removeGuidUI.Add(guidUI);
                }
            }
            for (int i = 0; i < m_removeGuidUI.Count; i++)
            {
                m_cacheGuidUI.Remove(m_removeGuidUI[i]);
            }
            m_removeGuidUI.Clear();
        }
예제 #2
0
 public void AddGuidUICache(GuidUI guidUI)
 {
     m_cacheGuidUI.Add(guidUI);
 }