Beispiel #1
0
 private void _DestroyUI(BaseUIObject ui, string uiName)
 {
     if (ui.IsOpen())
     {
         ui.Close();
     }
     ui.Destroy();
     GameObject.Destroy(ui.GameObject);
     m_UIObjectDict.Remove(uiName);
 }
Beispiel #2
0
    private void _CloseUI(BaseUIObject ui)
    {
        if (!ui.IsOpen())
        {
            return;
        }

        ui.Close();
        ui.GameObject.SetActive(false);
    }