Ejemplo n.º 1
0
        public static void Draw(SpriteBatch spriteBatch)
        {
            switch (StateManager.MenuState)
            {
            case MenuStates.Main:
                mainMenu.Draw(spriteBatch);
                break;

            case MenuStates.LoadGame:
                LoadGameMenu.Draw(spriteBatch);
                break;

            case MenuStates.Options:
                OptionMenuManager.Draw(spriteBatch);
                break;

            case MenuStates.Ingame:
                ingameMenu.Draw(spriteBatch);
                break;

            case MenuStates.NewGame:
                newGameMenu.Draw(spriteBatch);
                break;

            case MenuStates.SlotSelector:
                SlotSelector.Draw(spriteBatch);
                break;
            }
        }
Ejemplo n.º 2
0
        public void Draw()
        {
            switch (MenuState)
            {
            case MenuStates.Main:
                _mainMenu.Draw();
                break;

            case MenuStates.Ingame:
                _ingameMenu.Draw();
                break;
            }
        }