public void EnableMenu(string menuName) { if (string.IsNullOrEmpty(menuName)) { return; } if (Menus.ContainsKey(menuName)) { DisableActiveMenu(); ActiveMenu = Menus[menuName]; ActiveMenu.EnableWidget(); } else { Debug.LogError("Menu Is Not Available"); } }
public void EnableMenu(string menuName) { if (string.IsNullOrEmpty(menuName)) { return; } if (Menus.ContainsKey(menuName)) { DisableActiveMenu(); ActiveWidget = Menus[menuName]; ActiveWidget.EnableWidget(); } else { Debug.LogError("Menu is not available in Dictionary!"); } }