public void ShowChildMenu(AbstractChildMenu menu) { if (menu == null) { Debug.Log("'menu' is null."); return; } if (!menu.ParentIsSet()) { Debug.Log("Parent is not set for menu: " + menu); return; } Hide(); menu.Show(true); menu.Activate(); }
public void HideChildMenu(AbstractChildMenu menu) { if (menu == null) { Debug.Log("menu is null"); return; } if (!menu.ParentIsSet()) { Debug.Log("Parent is not set for menu: " + menu); return; } controlsAreLocked = true; menu.Hide(); menu.Deactivate(); Show(); }