Exemplo n.º 1
0
        public void HideWnd(UIType t)
        {
            UICache cache = null;

            if (mWindowInstanceList.TryGetValue(t, out cache))
            {
                cache.mOwner.OnLeave();
                mStackInstance.Pop(t);

                Utility.LogColor("8080ff", string.Format("HideWnd {0}", t.ToString()));
            }
            else
            {
                Debug.Log(string.Format("mWindowInstanceList Can't find type [{0}]", t.ToString()));
            }
        }
Exemplo n.º 2
0
        public void DestoryWnd(UIType t)
        {
            UICache cache = null;

            if (mWindowInstanceList.TryGetValue(t, out cache))
            {
                mStackInstance.Pop(t);
                mWindowInstanceList.Remove(t);

                //  TODO
                cache.mOwner = null;
                GameObject.Destroy(cache.mInstance);
                Utility.LogColor("8080ff", string.Format("DestoryWnd {0}", t.ToString()));
            }
            else
            {
                Debug.Log(string.Format("mWindowInstanceList Can't find type [{0}]", t.ToString()));
            }
        }