Exemple #1
0
        protected override void LoadContent()
        {
            _spriteBatch = new SpriteBatch(GraphicsDevice);

            // TODO: use this.Content to load your game content here
            gameSceneManager.SwitchScene("menuScene");
        }
 public override void Update(GameTime gameTime)
 {
     _mouseState = Mouse.GetState();
     if (MouseIsInBounds(_mouseState.X, _mouseState.Y))
     {
         Mouse.SetCursor(MouseCursor.Hand);
         if (_mouseState.LeftButton == ButtonState.Pressed)
         {
             _gameSceneManager.SwitchScene(_gameSceneToChangeTo);
             return;
         }
     }
     else
     {
         Mouse.SetCursor(MouseCursor.Arrow);
     }
     base.Update(gameTime);
 }