Example #1
0
 public override void HandleInput(MouseButtonEventArgs buttonEventArgs)
 {
     if (Mouse.IsButtonPressed(Mouse.Button.Left))
     {
         if (_menuUI.Contains(buttonEventArgs.X, buttonEventArgs.Y))
         {
             _menuUI.OnClick(buttonEventArgs.X, buttonEventArgs.Y);
         }
     }
 }