Пример #1
0
        public void Draw(GameTime time)
        {
            spriteBatch.Begin();

            spriteBatch.Draw(background, new Rectangle(0, 0, (int)GameConstants.WINDOWSIZE.X, (int)GameConstants.WINDOWSIZE.Y), Color.White);

            MainPanel.Draw(spriteBatch);

            switch (State)
            {
            case SettingState.Difficulty:
                DifficultyPanel.Draw(spriteBatch);
                break;

            case SettingState.Volume:
                VolumePanel.Draw(spriteBatch);
                break;

            case SettingState.Controls:
                ControlsPanel.Draw(spriteBatch);
                break;
            }

            spriteBatch.End();
        }