protected override void HandleMouse(GameTime gameTime) { foreach (DrawnActor2D actor in ActiveList) { if (actor is UIButtonObject buttonObject) { if (buttonObject.Transform2D.Bounds.Contains(mouseManager.Bounds)) { if (mouseManager.IsLeftButtonClickedOnce()) { HandleClickedButton(buttonObject); } } } } }