예제 #1
0
        public override void Update(GameTime gameTime)
        {
            Vector2 resolution = new Vector2(Game.instance.res.ScreenWidth, Game.instance.res.ScreenHeight);

            if (previousMouseState.LeftButton == ButtonState.Released && Mouse.GetState().LeftButton == ButtonState.Pressed && Game.instance.res.Contains(Mouse.GetState().X, Mouse.GetState().Y))
            {
                control.setLocation(new Vector2(Mouse.GetState().X, Game.instance.res.ScreenHeight - Mouse.GetState().Y));
            }
            previousMouseState = Mouse.GetState();
        }