Example #1
0
 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();
 }
Example #2
0
 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();
 }