public void Update(MouseState mouse)
{
Rectangle mouseRec = new Rectangle((int)mouse.X, (int)mouse.Y, (int)vecSize.X, (int)vecSize.Y);
if (recCheckBoxLeft.Intersects(mouseRec) || recCheckBoxRight.Intersects(mouseRec))
{
if (mouse.LeftButton == ButtonState.Pressed && mouseReleased == true)
{
mouseReleased = false;
CheckBoxClick();
}
}
if (mouse.LeftButton == ButtonState.Released)
{
mouseReleased = true;
}
}