Example #1
0
        private void HideUI(string behaviourName)
        {
            UIBehaviour behaviour = null;

            if (m_AllUI.TryGetValue(behaviourName, out behaviour))
            {
                behaviour.Hide();
            }
        }
Example #2
0
        private void CloseUI(string behaviourName)
        {
            UIBehaviour behaviour = null;

            if (m_AllUI.TryGetValue(behaviourName, out behaviour))
            {
                behaviour.Close();
                m_AllUI.Remove(behaviourName);
            }
        }
Example #3
0
        public void CloseUI(string behaviourName)
        {
            UIBehaviour behaviour = null;

            m_AllUI.TryGetValue(behaviourName, out behaviour);
            if (behaviour != null)
            {
                behaviour.Close();
                m_AllUI.Remove(behaviourName);
            }
        }