Exemple #1
0
        private bool IntersectaMouse()
        {
            Vector2   mousePos  = Entrada.ObtenerPosicionMouse();
            Rectangle mouseRect = new Rectangle((int)mousePos.X, (int)mousePos.Y, 1, 1);

            if (mouseRect.Intersects(ObtenerLimites()))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }