private void _DestroyUI(BaseUIObject ui, string uiName) { if (ui.IsOpen()) { ui.Close(); } ui.Destroy(); GameObject.Destroy(ui.GameObject); m_UIObjectDict.Remove(uiName); }
private void _CloseUI(BaseUIObject ui) { if (!ui.IsOpen()) { return; } ui.Close(); ui.GameObject.SetActive(false); }