//hide menu public void HideMenu(EnumUIMenuID menuID) { if (!_uiMenus.ContainsKey(menuID)) { LoggingManager.AddErrorToLog("Try hide, but Didnt found menu " + menuID.ToString()); return; } _uiMenus[menuID].HideAnimation(); }
/* Logic * */ // show menu animation public void ShowMenu(EnumUIMenuID menuID, object data = null) { if (!_uiMenus.ContainsKey(menuID)) { LoggingManager.AddErrorToLog("Try show, but Didnt found menu " + menuID.ToString()); return; } if (data != null) { _uiMenus[menuID].Data = data; } _uiMenus[menuID].ShowAnimation(); }