Exemple #1
0
        public void CloseCurrentDialog()
        {
            m_currentDialog.GetComponent <UIDialog> ().PanelClose();

            m_currentDialog.gameObject.SetActive(false);
            m_currentDialog = null;
            if (m_dialogs.Count != 0)
            {
                GameObject uiDialog = m_dialogs.Pop();
                uiDialog.SetActive(true);
                m_currentDialog = uiDialog.GetComponent <UIDialog> ();
            }
        }