/// <summary>
 /// Gets the result from the Menu
 /// </summary>
 /// <param name="menu">The Menu</param>
 /// <param name="menuCode">The Menu Code</param>
 /// <returns>The MenuResultCode</returns>
 protected virtual MenuResultCode GetMenuResult(IMenu menu, string menuCode)
 {
     if (MenuInputManager.IsExitCode(menuCode))
     {
         return(MenuResultCode.Exit);
     }
     else if (menu.MenuItems.ContainsKey(menuCode))
     {
         return(MenuResultCode.Successful);
     }
     return(MenuResultCode.Invalid);
 }
    private void Start()
    {
        if (instance == null)
        {
            instance = this;
        }
        else
        {
            this.enabled = false;
        }


        if (defaultMenu)
        {
            OpenMenu(defaultMenu);
        }
    }