예제 #1
0
        public void ShowPopup(string popupName, object param, System.Action onClose)
        {
            ClosePopupByName(popupName, true);
            if (mPopups.Count > 0)
            {
                RemoveFocus(mPopups.Peek(), true);
            }
            PopupProcess popup = PopupProcess.Get(popupName, param, onClose);

            mPopups.Push(popup);
            AddFocus(popup, false, true);
            if (mOnPopupLoaded == null)
            {
                mOnPopupLoaded = OnPopupLoaded;
            }
            popup.Start(mUILoader, mOnPopupLoaded);
        }