private void HideUI(string behaviourName) { UIBehaviour behaviour = null; if (m_AllUI.TryGetValue(behaviourName, out behaviour)) { behaviour.Hide(); } }
private void CloseUI(string behaviourName) { UIBehaviour behaviour = null; if (m_AllUI.TryGetValue(behaviourName, out behaviour)) { behaviour.Close(); m_AllUI.Remove(behaviourName); } }
public void CloseUI(string behaviourName) { UIBehaviour behaviour = null; m_AllUI.TryGetValue(behaviourName, out behaviour); if (behaviour != null) { behaviour.Close(); m_AllUI.Remove(behaviourName); } }