Пример #1
0
        private void UpdateGameState()
        {
            if (GameState == 2)
            {
                Map.MapChanges();
                Map.SortObjectToDraw();

                if (Scorebar.CheckWin())
                {
                    GameState++;
                }
            }
            else if (GameState == 0)
            {
                GameState = StartMenu.CheckKeysPressed(MouseState, OldMouseState, GameState);
            }
            else if (GameState == 1)
            {
                GameState = SelectCharactersMenu.CheckKeysPressed(MouseState, OldMouseState, GameState);
            }
            else if (GameState == 3)
            {
                GameState = EndGameMenu.CheckKeysPressed(MouseState, OldMouseState, GameState);
            }
        }